JavaScript for WordPress Forums React Explained Refactoring stage issues Reply To: Refactoring stage issues

#107598
GPorter43
Participant

The last thing that doesn’t seem to work in the refactoring section is when we put

<Route
exact
path="/login"
render={() =>
this.renderAuthRoute(Login, {
onLogin: this.onLogin
})
}
/>

I think this is beacuse renderAuthRoute is checking we are authenticated and if not sending us to ‘/’ obviously this will never work as you would need login to work when not authenticated.

am i missing something