default: return state; } } const MyForm = () => { const [state, dispatch] = useReducer(reducer, initialState); return ( // ... <input type="text ...
確定! 回上一頁