DEV Community

Discussion on: Protected Routes in React with Custom Hook & Context API

Collapse
 
johnkazer profile image
John Kazer

Good example and thorough. Interested what you think about using xstate, as in this example (although uses classes rather than hooks)