There's a faster version of egghead. Click here to try it.
1×
Become a member
to unlock all features
Autoplay

    Use Component State Initializers

    reactReact
    ^16.3.2

    In this lesson, we'll allow users to initialize our component's state with their own defaults and support a reset functionality to reset to the initial state.