Closed seveibar closed 1 week ago
const [form, setField] = useReducer((state, action) => {
state[action.fieldName] = action.fieldValue
return state
}, {})
<Input value={form.name} onChange={(fieldValue) => setField({ fieldName: "name", fieldValue }))
Form w/ placeholders
Update button to save changes