RSSAmplifier

Kent C. Dodds Blog · Nov 5, 2021

The State Initializer Pattern

0
Sign in to vote or save

This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.

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 on kentcdodds.com

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.