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

    Support Control Props for all state

    reactReact
    ^16.3.2

    Our current implementation of control props only supports controlling the state of a single item of state. Let's make our solution more generic to support any and all state of our component using Object.entries.