←
Rikard Kling74 posts
Rikard Kling avatar

Rikard Kling

@impala

Product Designer & CEO at Mighty.

◷ Joined January 2008
David K 🎹 avatar
⟳ Rikard Kling retweeted
David K 🎹@DavidKPiano·19 Dec 2022

⚛️ Here's a fun React tip: `useReducer` is a better `useState`, and it's easier to adopt than you may think. Group related values together and spread them in the reducer. Then, updating is just: updateThing({ prop: newValue }) And there's even more benefits to `useReducer`...

Post attachmentPost attachment