Toggle edit mode for multiple components 🔥
You can now control the state of multiple
EasyEditcomponents 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
You cannot change the
editModeprop from within the same component as they are read-only, all React components must act like pure functions with respect to their props.