|
|
|
|
|
by Pabblo001
2469 days ago
|
|
Since hooks introduction, I fell in love with React.
I always use useState, useEffect, useContext, useReducer... I remember the pain building an app with redux and constant mapToState.... that was nightmare! With hooks it's so easy now. |
|
The React-Redux hooks API [1] also requires less code that `connect`.
I just wrote a tutorial for RSK that shows how to use it with TypeScript, thunks for async, and React-Redux hooks [2].
[0] https://redux-starter-kit.js.org/
[1] https://react-redux.js.org/api/hooks
[2] https://redux-starter-kit.js.org/tutorials/advanced-tutorial