Another React & Frontend blog ft. Framer Motion

Tools

ake

aves

Picking Apart Kent's useAsync Hook

One of the snippet's I picked up from Kent C. Dodds' EpicReact course was this super cool useAsync function, and it's a masterclass in elegance. There are several patterns I want to call out that he uses here that every React dev should know.

Avoid Async Memory Leaks With This useSafeDispatch Hook

I found out recently that one great way to create a memory leak in React is by trying to manage state on a component that has been unmounted. These 13 lines of code will optimize your dispatch functions so that you don't have to worry.