September 2018
Beginner
156 pages
3h 28m
English
The match object contains information on how the <Route> path matches the current URL. It includes the url, path, isExact, and params properties.
Let's refer to one of the earlier routes where the render prop is used:
<Route path="/user" render={({ match }) => { console.log(match); return ( <div> Inside User route </div> ); }}/>
When you try accessing the /user path, the match object's properties will have the following values:
url - '/user'path - '/user'params - {}isExact - true
Read now
Unlock full access