react route component props code example
Example 1: react route props
(
)}
exact={true}
/>
Example 2: can I pass function as prop on route change
Page n°1
// Now in Content you can use it like this.props.location.state.decrease