Put in order · Vibe coding with Claude Code course · Module 12: Medium clone

A tab click without casting

Put in order, in one line, the handling of a tab click with the TabKey type:

Items to put in order

  • onClick=
  • setTab(
  • {() =>
  • t.key)}

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