Click in order · JavaScript and React course · Module 12: React and TypeScript

Typed Reducer Definition

Arrange the signature of a typed reducer function:

Items to click

  • function reducer(
  • ): AppState {
  • state: AppState,
  • action: AppAction

You can check the correct answer by solving this task in the CodeWorlds game.