useReducer

useState を useReducer で書き直している。

See the Pen useReducer by kalz2q (@kalz2q) on CodePen.