React class abstract

Annotations
  • @JS()

Constructors

React()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

Fragment ReactClass
no setter
StrictMode ReactClass
no setter
Suspense ReactClass
no setter
version String
no setter

Static Methods

cloneElement(ReactElement element, [JsMap? props, ReactNode? children]) ReactElement
createClass(ReactClassConfig reactClassConfig) ReactClass
createContext([dynamic defaultValue, int calculateChangedBits(dynamic currentValue, dynamic nextValue)?]) ReactContext
createElement(dynamic type, dynamic props, [ReactNode? children]) ReactElement
createRef() JsRef
forwardRef(dynamic wrapperFunction(JsMap props, dynamic ref)) ReactClass
isValidElement(dynamic object) bool
lazy(Promise load()) ReactClass
memo(dynamic wrapperFunction, [bool areEqual(JsMap prevProps, JsMap nextProps)?]) ReactClass
useCallback(Function callback, List<Object?> dependencies) Function
useContext(ReactContext context) ReactContext
useDebugValue(dynamic value, [Function? format]) → dynamic
useEffect(dynamic sideEffect(), [List<Object?>? dependencies]) → void
useImperativeHandle(dynamic ref, dynamic createHandle(), [List<Object?>? dependencies]) → void
useLayoutEffect(dynamic sideEffect(), [List<Object?>? dependencies]) → void
useMemo(dynamic createFunction(), [List<Object?>? dependencies]) → dynamic
useReducer(Function reducer, dynamic initialState, [Function? init]) List
useRef([Object? initialValue]) JsRef
useState(dynamic value) List