score:2

Accepted answer

you just need to use the spread operators and pass your custom props alongside.

 <route exact path="/" component={props => <home props={{ data: "check", ...props }}/>}/>

if you console the props inside home component, you can see the value of data in props.data


Related Query

More Query from same tag