Typed Explorer Step 10: Type the Components

Type every component in the Explorer: props, state and handlers. Start with the leaves and work up, because the errors get clearer that way. Replace your separate loading, error and items state with the discriminated union, and add an exhaustiveness check wherever the states are rendered. Then count how many props you discovered were being passed in a shape the component did not actually expect.

SANKOFA SANDBOX
loading editor…
Your turn → Work through it step by step. This is a piece of the course project, not a throwaway exercise.

Built it in both languages?

Mark it done once your Python and JavaScript versions both run correctly. Honesty here is what makes the dashboard useful to you.

← BackNext: Module 11: Configuration and Migration →