B4Coder
0%
LessonAbout 5 min

Chapter 3 · Lesson 3 of 5

03. Default values for props

Give a prop a value to use when it isn't passed, right in the destructuring: { size = "medium" }.

Opening the lesson…