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:
- function
- Button
- ({
- label
- = 'Click'
- }) { }