Features of React-router-dom
- Better support and optimization for React 16.
- Does not show any warnings in <StrictMode>.
- Introduction of a new context API.
- Fully automated releases.
- Bully backwards compatible with react-router-v4.
Why to get “Router may have only one child element” warning ?
React Router Dom is a collection of navigational components that compose declaratively with your application. Whether you want to have bookmarkable URLs for your web app or a composable way to navigate in React Native, React Router Dom works in both places. We will be taking into consideration react-router-dom v5.3.0.