MemotivaProps and State

What is the purpose of defaultProps?

Props and State

Audio flashcard · 0:10

Nortren·

What is the purpose of defaultProps?

0:10

defaultProps lets you define default values for props that are not passed by the parent. In modern functional components, default parameter values in the function signature are typically used instead. ---