defaultProps property

JsMap? defaultProps

The cached, unmodifiable copy of Component2.defaultProps computed in registerComponent2.

For use in ReactDartComponentFactoryProxy2 when creating new ReactElements, or for external use involving inspection of Dart prop defaults.

Implementation

external JsMap? get defaultProps;
void defaultProps=(JsMap? value)

Implementation

external set defaultProps(JsMap? value);