Put in order · JavaScript and React course · Module 12: React and TypeScript
From Simple to Complex Typing
Arrange TypeScript concepts in React from simplest to most complex:
Items to put in order
- Typing simple props (string, number, boolean)
- Context + useReducer with discriminated unions
- Typing useState and useRef with generics
- Interfaces with optional fields and children
- Typing events (ChangeEvent, SubmitEvent)
- Generic components with constraints
You can check the correct answer by solving this task in the CodeWorlds game.