trait ReactJS extends Object with Concurrent
- Annotations
- @JSType() @native()
- Alphabetic
- By Inheritance
- ReactJS
- Concurrent
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val Children: Children
- val Component: Dynamic
We are not importing this to be used in a class oriented way.
- val Fragment: ReactJSComponent
- val StrictMode: ReactJSComponent
- val Suspense: ReactJSComponent
- val SuspenseList: ReactJSComponent
- Definition Classes
- Concurrent
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- def cloneElement(el: ReactElement, props: Dynamic): ReactDOMElement
- def createContext[T](defaultValue: T, calculateChangedBits: UndefOr[Function2[T, T, Int]]): ReactContext[T]
- def createElement(el: ReactType, props: Any, children: ReactNode*): ReactElement
Can take a wide variety of types for tpe: string | sfc | class (extending React.Component).
Can take a wide variety of types for tpe: string | sfc | class (extending React.Component). P is kept very general here and public APIs should customize as needed. Props is js.Any to force public APIs to think about the props type before casting. Children can be in the props as well if I recall correctly so the varags is a convenience.
- def createMutableSource[S](source: Any, getVersion: Function0[Any]): MutableSource[S]
- Definition Classes
- Concurrent
- def createRef[T](): ReactRef[T]
Create a ref to be assigned to a "ref" property on a component.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def forwardRef[T](): Object
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
- def isValidElement(obj: Object): Boolean
- def lazy(lazyComponent: DynamicImportThunk): ReactJSLazyComponent
Returns a "lazy" react component i.e.
Returns a "lazy" react component i.e. $$type = react.lazy
- def memo[P](f: Function1[P, ReactNode], compare: UndefOr[Function2[Any, Any, Boolean]] = js.undefined): Function1[P, ReactElement]
Takes a function component and optional props comparison func.
Takes a function component and optional props comparison func. This returns a function component as this is an HOC. The returned component still needs to be wrapped properly to use with this facade.
P
is kept general here but should be customized in the public API. - final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toLocaleString(): String
- Definition Classes
- Object
- def toString(): String
- Definition Classes
- AnyRef → Any
- def useDeferredValue(value: Any, config: DeferredValueConfig): Any
- Definition Classes
- Concurrent
- def useMutableSource[S, A](source: MutableSource[S], getSnapshot: Function1[S, A], subscribe: Function2[S, Function0[Unit], Function0[Unit]]): A
subscribe 2nd arg is to be called whenever the value changes and is stable.
subscribe 2nd arg is to be called whenever the value changes and is stable. Last is an unsubscribe for unmounting.
- Definition Classes
- Concurrent
- def useTransition(config: TransitionConfig): Tuple2[Function1[Function0[Unit], Unit], Boolean]
- Definition Classes
- Concurrent
- def valueOf(): Any
- Definition Classes
- Object
- val version: String
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])