Open gajus opened 8 years ago
@gajus I've written a helper library, that uses the HOC approach @joshgeller used in this repo. You add it to your dependencies and then you can apply it to your components to give them auth.
It supports redux-simple-router and there are examples as well. https://github.com/mjrussell/redux-auth-wrapper
redux-simple-router is now react-router-redux.
This appears to be the preferred routing library now, https://github.com/acdlite/redux-router#for-a-more-stable-official-binding-between-redux-and-react-router-try-redux-simple-router.