|
You are here |
typeofnan.dev | ||
| | | | |
scastiel.dev
|
|
| | | | | React Hooks are trully awesome, but the more I play with them the more I discover tricks, and sometimes spend a lot of time figuring out why my code doesn't do what it is supposed to. | |
| | | | |
www.robinwieruch.de
|
|
| | | | | A comprehensive tutorial about React Hooks, why React uses Hooks, what Hooks are available, and how to use Hooks in React for state management and side-effects in React function components ... | |
| | | | |
www.boardinfinity.com
|
|
| | | | | SetState is a React lifecycle method that allows an application to update the state of a component without the need for that component to re-render. | |
| | | | |
mbuffett.com
|
|
| | | Recently I migrated my side-project from Redux, which I've used in every React project for the past four years, to pullstate, here is my tale. Problems with Redux Feel free to skip this part if you already know the pain points of Redux, there's nothing in here that hasn't been discussed a million times before. These are the problems as I see them, most important first: The boilerplate. Oh man, the boilerplate. Want to add a counter? First, add the field to your interface (I'm assuming TypeScript), add a default value, create a new action type for the incrementing, write an action creator, add the case to your reducer, add the dispatcher hook to your component, dispatch your action creator. It's exhausting just to list the steps, nevermind actually doing it f... | ||