Confetti patternConfetti pattern

Posts tagged react

Confetti patternConfetti pattern
  • Better way to use useReducer with TypeScript

    Introducing useComplexState hook, - a small wrapper combining Redux Toolkit, useReducer with some extra syntax sugar to make things even simpler and more to-the-point.

  • Choosing between useState and useReducer

    A simple example that demonstrates when useState is no longer a good idea, and how to make useReducer less scary to work with.