Passing Props
In previous version of react router, in order to pass props to a component through the route, you’d have to do things that don’t really follow react composition philosophy. In react-router v4, you’d have to use render props and it would look like this:
In react-router v5, however, thing got updated to follow a more declarative approach using composition, so you can now simply do: