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

Props Syntax with an Interface

Arrange the syntax for typing component props using an interface:

Items to put in order

  • : CardProps)
  • { return <div /> }
  • function Card(
  • { title, desc }

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