let that = this
common in react? I don't see that
being used anywhere else in the example I'm looking at
oops
let that = this
let email = this.props.currentUser
axios.delete('/users/sign_out', {
})
.then(function(response){
that.props.changePage("login")
})
it looks like that
is used in the async/await. Is this common in JS?
const Component = ( { currentUser, email } ) => {
.then