I used this code to check if the user sign in or not in react-router-dom 5.3.0v but this code doesn't work with me in 6.0.2v, what instead of?
<Route
exact
path="/"
render={() => {
return (
this.props.loading === true ?
<Redirect to="/login" /> :
<Redirect to="/home" />
)
}}
/>