My Learning Curve

Feed / Kent C. Dodds Blog

The State Initializer Pattern

Friday, November 5, 2021

A simple pattern used in libraries like downshift and ReachUI to enable component/hook users to initialize your state and even reset it to that initial value.

Read original article ↗