Toggle edit mode for multiple components 🔥
Last updated
Last updated
You can now control the state of multiple EasyEdit
components by externally manipulating the prop editMode
. In the example below, we have an Edit button that controls toggles between the view and edit state of three EasyEdit
components.
You cannot change the editMode
prop from within the same component as they are read-only, all React components must act like pure functions with respect to their props.