ReactDartComponentFactoryProxy2<TComponent extends Component2> constructor
ReactDartComponentFactoryProxy2<TComponent extends Component2> (
- ReactClass reactClass
Implementation
ReactDartComponentFactoryProxy2(this.reactClass)
// While .defaultProps will be non-null on all Dart components created via registerComponent2,
// there are some valid usages of ReactDartComponentFactoryProxy2 (such as within over_react's connect)
// where we're dealing with other components, so we can't assume this is non-null
: defaultProps = JsBackedMap.fromJs(reactClass.defaultProps ?? JsMap());