react router updating from v5.1
to update boilerplates, webpack needs to be updated (or replaced)
to update webpack, critical libs like react, react-router needs to be updated
react & react router allow now deferring loading of modules if not used or useful to a dynamic page (optimizing loading time)
webpack was historically responsible of splitting js bundle into chunks and can be replaced now by more efficient, powerful and maintainable tools (devdeps will drastically decrease! -> good for vulnerabilities)
this ticket is about updating react-router only: https://reactrouter.com/en/6.13.0/upgrading/v5
Edited by Nicolas Briemant