react_client library
Classes
- ReactComponentFactoryProxy
- Creates a ReactJS virtual DOM instance (ReactElement on the client).
-
ReactDartComponentFactoryProxy<
TComponent extends Component> -
ReactDartComponentFactoryProxy2<
TComponent extends Component2> - Creates ReactJS Component2 instances for Dart components.
- ReactDartFunctionComponentFactoryProxy
-
Creates ReactJS
Function Component
from Dart Function. - ReactDomComponentFactoryProxy
- Creates ReactJS ReactElement instances for DOM components.
- ReactElement
- A virtual DOM element representing an instance of a DOM element, React component, or fragment.
- ReactJsComponentFactoryProxy
- Creates ReactJS ReactElement instances for components defined in the JS.
- ReactJsContextComponentFactoryProxy
-
Creates ReactJS ReactElement instances for
JSContext
components. -
Ref<
T> - When this is provided as the ref prop, a reference to the rendered component will be available via current.
Mixins
- JsBackedMapComponentFactoryMixin
- Shared component factory proxy build method for components that utilize JsBackedMaps.
Properties
- componentZone ↔ Zone
-
The zone in which React will call component lifecycle methods.
getter/setter pair
- inReactDevMode → bool
-
Whether the "dev" build of react.js is being used.
no setter
Functions
-
chainRefList(
List refs) → dynamic -
Like chainRefs, but takes in a list of
refs
. -
chainRefs(
dynamic ref1, dynamic ref2) → dynamic -
Returns a ref that updates both
ref1
andref2
, effectively allowing you to set multiple refs. -
listifyChildren(
ReactNode? children) → ReactNode? -
Prepares
children
to be passed to the ReactJS React.createElement and the Dart Component2. -
setClientConfiguration(
) → void - Method used to initialize the React environment.
-
unconvertJsProps(
dynamic instance) → Map -
Returns the props for a ReactElement or composite ReactComponent
instance
, shallow-converted to a Dart Map for convenience.
Typedefs
-
ComponentFactory<
T extends Component> = T Function() - JsFunctionComponent = dynamic Function(JsMap props, [JsMap? legacyContext])
- The function signature for ReactJS Function Components.
- ReactJsComponentFactory = ReactElement Function(dynamic props, dynamic children)
- ReactNode = Object?
-
A value that can be returned from a component's
render
, or used aschildren
.