September 2018
Beginner
156 pages
3h 28m
English
The children prop should be used in a case where you want to render the view irrespective of whether or not there's a path match. The syntax for the children prop is similar to the render prop, as shown here:
<Route path="/sidenav" children={() => ( <div> Inside Sidenav route </div> )}/>
The <Route> component with a children prop is rendered even if the path prop is not specified. Also, the exact and strict props will not have any effect on a <Route> component with a children prop.
A <Route> component ...
Read now
Unlock full access