|
|
|
|
|
by dceddia
2237 days ago
|
|
The implication behind “we don’t use Redux, we use hooks” is that they’re using React’s Context API directly as a “store”. A component at the top level has some state, probably using the useReducer hook, that state is passed down using a Context Provider, and child components can access the data with useContext. You can DIY a Redux imitation with hooks pretty easily but making it as performant as Redux is harder. |
|