Coding task · JavaScript and React course · Module 12: React and TypeScript
Practice: useState with Types
Use useState with explicit typing: Spacecraft | null, Spacecraft[] array, and union type for a filter.
Task
Typing useState with different types