Concepts
Default prop values
A destructured default is applied when a field is omitted or undefined, not when it is null or zero.
Formal Syntax & Structure
react syntaxreact
function Label({ count = 5 })Working Example
Example Snippetreact
function Label({ count = 5 }) { return <p>{count}</p>; }