object React extends Object with React
- Annotations
- @JSImport( "react" , JSImport.Namespace , "React" ) @native() @nowarn( "cat=unused" )
- Alphabetic
- By Inheritance
- React
- React
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
trait
Children extends Object
- Annotations
- @RawJSType() @native()
-
abstract
class
Component[P <: Object, S <: Object] extends Object
- Annotations
- @RawJSType() @native()
-
type
ComponentClass[P <: Object, S <: Object] = Function1[P, Component[P, S]] with HasDisplayName
Class[React.Component[P, S]] - type ComponentClassP[P <: Object] = ComponentClass[P, _ <: Object]
- type ComponentClassUntyped = ComponentClass[_ <: Object, _ <: Object]
-
trait
ComponentElement[P <: Object] extends Object with Element
A
React.Elementthat is known to be a componentA
React.Elementthat is known to be a component- Annotations
- @RawJSType() @native()
- type ComponentType[Props <: Object] = |[|[ComponentClass[Props, _ <: Object], ForwardRefComponent[Props, _]], StatelessFunctionalComponent[Props]]
- type ComponentUntyped = Component[_ <: Object, _ <: Object]
- type Constructor[P <: Object] = Function1[P, Any] with HasDisplayName
-
trait
Context[A <: Any] extends Object
- Annotations
- @RawJSType() @native()
-
trait
DomElement extends Object with Element
A
React.Elementthat is known to be DOMA
React.Elementthat is known to be DOM- Annotations
- @RawJSType() @native()
-
trait
Element extends Object
A React element is the type for the value of a DOM tag, or the return type of React.createElement().
A React element is the type for the value of a DOM tag, or the return type of React.createElement().
- Annotations
- @RawJSType() @native()
-
trait
ElementRef extends Any
A React element is the type for the value of a DOM tag, or the return type of React.createElement().
A React element is the type for the value of a DOM tag, or the return type of React.createElement().
- Annotations
- @RawJSType() @native()
- type ElementType = |[String, ComponentType[_ <: Object]]
-
trait
ErrorInfo extends Object
- Annotations
- @RawJSType() @native()
-
trait
ForwardRefComponent[P <: Object, R] extends Object
- Annotations
- @RawJSType() @native()
- type ForwardedRef[A] = |[RefHandle[A], Null]
- type Key = |[String, JsNumber]
-
trait
Lazy[P <: Object] extends Object
- Annotations
- @RawJSType() @native()
-
trait
LazyResult[P <: Object] extends Object
- Annotations
- @RawJSType() @native()
- type LazyResultValue[P <: Object] = |[|[ComponentClass[P, _ <: Object], ForwardRefComponent[P, _]], StatelessFunctionalComponent[P]]
- type Node = |[|[|[|[Empty, String], JsNumber], Element], RecursiveTypeAliases.ChildrenArray[|[|[|[Empty, String], JsNumber], Element]]]
- type Ref = |[RefFn[ElementRef], RefHandle[Any]]
- type RefFn[A] = Function1[|[A, Null], Unit]
-
trait
RefHandle[A] extends Object
- Annotations
- @RawJSType() @native()
- type StatelessFunctionalComponent[Props <: Object] = Function1[Props, Node]
-
trait
ValueProps[A <: Any] extends Object
- Annotations
- @ScalaJSDefined() @RawJSType()
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
-
final
val
Children: Children
React.Children provides utilities for dealing with the this.props.children opaque data structure.
React.Children provides utilities for dealing with the this.props.children opaque data structure.
- Definition Classes
- React
-
final
val
Fragment: Symbol
- Definition Classes
- React
-
final
val
Profiler: Symbol
- Definition Classes
- React
-
final
val
SecretInternals: SecretInternals
- Definition Classes
- React
- Annotations
- @JSName( ... )
-
final
val
StrictMode: Symbol
- Definition Classes
- React
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native() @HotSpotIntrinsicCandidate()
-
final
def
cloneElement[P <: Object](element: ComponentElement[P], props: P, children: Node*): ComponentElement[P]
- Definition Classes
- React
-
final
def
cloneElement[P <: Object](element: ComponentElement[P], props: P): ComponentElement[P]
- Definition Classes
- React
-
final
def
cloneElement[P <: Object](element: ComponentElement[P]): ComponentElement[P]
- Definition Classes
- React
-
final
def
cloneElement(element: DomElement, props: Object, children: Node*): DomElement
- Definition Classes
- React
-
final
def
cloneElement(element: DomElement, props: Object): DomElement
- Definition Classes
- React
-
final
def
cloneElement(element: DomElement): DomElement
- Definition Classes
- React
-
final
def
createContext[A <: Any](defaultValue: A): Context[A]
- Definition Classes
- React
-
final
def
createElement[P <: Object](type: ComponentType[P], props: P, children: Node*): ComponentElement[P]
- Definition Classes
- React
-
final
def
createElement[P <: Object](type: ComponentType[P], props: P): ComponentElement[P]
- Definition Classes
- React
-
final
def
createElement[P <: Object](type: ComponentType[P]): ComponentElement[P]
- Definition Classes
- React
-
final
def
createElement(type: String, props: Object, children: Node*): DomElement
- Definition Classes
- React
-
final
def
createElement(type: String, props: Object): DomElement
- Definition Classes
- React
-
final
def
createElement(type: String): DomElement
- Definition Classes
- React
-
final
def
createElement(type: Symbol, props: Object, children: Node*): Element
- Definition Classes
- React
-
final
def
createElement[P <: Object](l: Lazy[P], props: P, children: Node*): Element
- Definition Classes
- React
-
final
def
createElement(s: Suspense.type, props: SuspenseProps, children: Node*): Element
- Definition Classes
- React
-
final
def
createElement[A <: Any](contextConsumer: ComponentClass[Null, Null], props: Null, childrenFn: Function1[A, Node]): Element
React.createContext(...).Consumer
React.createContext(...).Consumer
- Definition Classes
- React
-
final
def
createRef[A](): RefHandle[A]
- Definition Classes
- React
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
forwardRef[P <: Object, R](f: Function2[P with PropsWithChildren, ForwardedRef[R], Node]): ForwardRefComponent[P, R]
- Definition Classes
- React
-
final
def
getClass(): Class[_]
- 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
-
final
def
lazy[P <: Object](f: Function0[Promise[LazyResult[P]]]): Lazy[P]
- Definition Classes
- React
- Since
16.6.0
-
final
def
memo[P <: Object, A](f: Function1[P, A], areEqual: Function2[P, P, Boolean] = js.native): Object
- Definition Classes
- React
- Since
16.6.0
-
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
valueOf(): Any
- Definition Classes
- Object
-
final
val
version: String
- Definition Classes
- React
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
Deprecated Value Members
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] ) @Deprecated @deprecated
- Deprecated
(Since version ) see corresponding Javadoc for more information.