react_client/component_factory library

Classes

ReactDartComponentFactoryProxy<TComponent extends Component>
ReactDartComponentFactoryProxy2<TComponent extends Component2>
Creates ReactJS Component2 instances for Dart components.
ReactDartFunctionComponentFactoryProxy
Creates ReactJS Function Component from Dart Function.
ReactDartWrappedComponentFactoryProxy
A wrapper for a Dart component that's been wrapped by a JS component/HOC (e.g., React.memo, React.forwardRef).
ReactDomComponentFactoryProxy
Creates ReactJS ReactElement instances for DOM components.
ReactJsComponentFactoryProxy
Creates ReactJS ReactElement instances for components defined in the JS.
ReactJsContextComponentFactoryProxy
Creates ReactJS ReactElement instances for JSContext components.

Mixins

JsBackedMapComponentFactoryMixin
Shared component factory proxy build method for components that utilize JsBackedMaps.

Functions

generateJsProps(Map props, {bool convertRefValue = true, bool convertCallbackRefValue = true, List<String> additionalRefPropKeys = const [], bool wrapWithJsify = true}) JsMap
Converts props into a JsMap that can be utilized with React.createElement().
listifyChildren(ReactNode? children) ReactNode?
Prepares children to be passed to the ReactJS React.createElement and the Dart Component2.
unconvertJsProps(dynamic instance) Map
Returns the props for a ReactElement or composite ReactComponent instance, shallow-converted to a Dart Map for convenience.