Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Route exact path="/" component={Charges} />
- <Route exact path="/" component={Account} />
- <Route path="/account" render={() => (isAuth() ? (<Redirect to="/login"/>) : (<Account />))}/>
- isAuth() => {this.props.isAuth};
Add Comment
Please, Sign In to add comment