Guest User

Untitled

a guest
Nov 21st, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. <Route exact path="/" component={Charges} />
  2. <Route exact path="/" component={Account} />
  3.  
  4. <Route path="/account" render={() => (isAuth() ? (<Redirect to="/login"/>) : (<Account />))}/>
  5.  
  6. isAuth() => {this.props.isAuth};
Add Comment
Please, Sign In to add comment