react_client.react_interop library

JS interop classes for main React JS APIs and react-dart internals.

For use in react_client.dart and by advanced react-dart users.

Classes

ComponentStatics
An object that stores static methods and information for a specific component class. [...]
InteropContextValue
A JavaScript interop class representing a value in a React JS context object. [...]
InteropProps
A JavaScript interop class representing a React JS props object. [...]
JsComponentConfig
Additional configuration passed to createReactDartComponentClassConfig that needs to be directly accessible by that JS code. [...]
React
ReactClass
A React class specification returned by React.createClass. [...]
ReactClassConfig
A JS interop class used as an argument to React.createClass. [...]
ReactComponent
The JavaScript component instance, which backs each react-dart Component. [...]
ReactDartComponentInternal
Internal react-dart information used to proxy React JS lifecycle to Dart Component instances. [...]
ReactDartContextInternal
Internal react-dart information used to proxy React JS lifecycle to Dart Component instances. [...]
ReactDartInteropStatics
An object that stores static methods used by all Dart components.
ReactDom
ReactDomServer
ReactElement
A virtual instance of a React component that is returned by component factories and Component.render methods, and passed into react.render. [...]
ReactElementStore
Interop class for the data structure at ReactElement._store. [...]

Properties

inReactDevMode → bool
Whether the "dev" build of react.js is being used. [...]
read-only

Functions

createReactDartComponentClass(ReactDartInteropStatics dartInteropStatics, ComponentStatics componentStatics, [ JsComponentConfig jsConfig ]) ReactClass
Returns a new JS ReactClassConfig for a component that uses dartInteropStatics and componentStatics internally to proxy between the JS and Dart component instances.
createReactDartComponentClassConfig(ReactDartInteropStatics dartInteropStatics, ComponentStatics componentStatics, [ JsComponentConfig jsConfig ]) ReactClassConfig
Returns a new JS ReactClassConfig for a component that uses dartInteropStatics and componentStatics internally to proxy between the JS and Dart component instances. [...]
@JS('_createReactDartComponentClassConfig'), @Deprecated('5.0.0')
markChildrenValidated(List children) → void
Mark each child in children as validated so that React doesn't emit key warnings. [...]
markChildValidated(dynamic child) → void
Marks child as validated, as if it were passed into React.createElement as a variadic child. [...]
@JS('_markChildValidated')

Typedefs

ReactJsComponentFactory(dynamic props, dynamic children) ReactElement