Click in order · JavaScript and React course · Module 2: Components and Props

Default props value syntax

Build the component syntax with a default prop value:

Items to click

  • ({
  • = 'Click'
  • }) { }
  • function
  • label
  • Button
Show the answer

Correct order:

  1. function
  2. Button
  3. ({
  4. label
  5. = 'Click'
  6. }) { }