React Router is a collection of navigational components that are widely used in almost every React app. It is one of the most popular dependencies in React. The next major version(v6) is yet to be released. It’s still in the beta stage at the time of this writing. Since it’s always nice to explore new features, I’d like to share my thoughts and give you all a sneak peek of the upcoming features and changes to come.

Smaller Bundle Size

React Router v6 is a lot smaller than its predecessor. The size is actually reduced by 60%, which is a good thing. Here is the comparison between the bundle size of v5 and v6 taken from Bundlephobia.

charts showing size and download time of react router v5

React router v5

charts showing size and download time of react router v6

React router v6

#react #javascript #react router v6 #web development

What’s New in React Router v6?
3.85 GEEK