Réponse

Example.defaultProps = { text: 'yo' };

Colonne
Explication

By giving your component class a property named defaultProps.
class Example extends React.Component {
render() {
return <h1>{this.props.text}</h1>;
}
}

Example.defaultProps = { text: 'yo' };

Question

give my component class Example a property named defaultProps (ex : text "yo")

Thématique