Become a member
to unlock all features

    Synchronize React UI and State with Controlled Components

    15 - 16

    We’ll make the input field a “controlled component” by reacting to each change of the input and capturing it in the component state. Following this model gives us assurance that the UI is always a representation of the current application state.