object React extends Object with React

Annotations
@JSImport("react", JSImport.Namespace, "React") @native() @nowarn()
Linear Supertypes
React, Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. React
  2. React
  3. Object
  4. Any
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. trait Children extends Object
    Annotations
    @JSType() @native()
  2. abstract class Component[P <: Object, S <: Object] extends Object
    Annotations
    @JSType() @native()
  3. type ComponentClass[P <: Object, S <: Object] = Function1[P, Component[P, S]] with HasDisplayName

    Class[React.Component[P, S]]

  4. type ComponentClassP[P <: Object] = ComponentClass[P, _ <: Object]
  5. type ComponentClassUntyped = ComponentClass[_ <: Object, _ <: Object]
  6. trait ComponentElement[P <: Object] extends Object with Element

    A React.Element that is known to be a component

    A React.Element that is known to be a component

    Annotations
    @JSType() @native()
  7. type ComponentType[Props <: Object] = |[|[ComponentClass[Props, _ <: Object], ForwardRefComponent[Props, _]], StatelessFunctionalComponent[Props]]
  8. type ComponentUntyped = Component[_ <: Object, _ <: Object]
  9. type Constructor[P <: Object] = Function1[P, Any] with HasDisplayName
  10. trait Context[A <: Any] extends Object
    Annotations
    @JSType() @native()
  11. trait DomElement extends Object with Element

    A React.Element that is known to be DOM

    A React.Element that is known to be DOM

    Annotations
    @JSType() @native()
  12. 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
    @JSType() @native()
  13. 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
    @JSType() @native()
  14. type ElementType = |[String, ComponentType[_ <: Object]]
  15. trait ErrorInfo extends Object
    Annotations
    @JSType() @native()
  16. trait ForwardRefComponent[P <: Object, R] extends Object
    Annotations
    @JSType() @native()
  17. type ForwardedRef[A] = |[RefHandle[A], Null]
  18. type Key = |[String, JsNumber]
  19. trait Lazy[P <: Object] extends Object
    Annotations
    @JSType() @native()
  20. trait LazyResult[P <: Object] extends Object
    Annotations
    @JSType() @native()
  21. type LazyResultValue[P <: Object] = |[|[ComponentClass[P, _ <: Object], ForwardRefComponent[P, _]], StatelessFunctionalComponent[P]]
  22. type Node = |[|[|[|[Empty, String], JsNumber], Element], RecursiveTypeAliases.ChildrenArray[|[|[|[Empty, String], JsNumber], Element]]]
  23. type Ref = |[RefFn[ElementRef], RefHandle[Any]]
  24. type RefFn[A] = Function1[|[A, Null], Unit]
  25. trait RefHandle[A] extends Object
    Annotations
    @JSType() @native()
  26. type StatelessFunctionalComponent[Props <: Object] = Function1[Props, Node]
  27. trait ValueProps[A <: Any] extends Object
    Annotations
    @JSType()

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. 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
  5. final val Fragment: Symbol
    Definition Classes
    React
  6. final val Profiler: Symbol
    Definition Classes
    React
  7. final val SecretInternals: SecretInternals
    Definition Classes
    React
    Annotations
    @JSName("__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED")
  8. final val StrictMode: Symbol
    Definition Classes
    React
  9. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  11. final def cloneElement[P <: Object](element: ComponentElement[P], props: P, children: Node*): ComponentElement[P]
    Definition Classes
    React
  12. final def cloneElement[P <: Object](element: ComponentElement[P], props: P): ComponentElement[P]
    Definition Classes
    React
  13. final def cloneElement[P <: Object](element: ComponentElement[P]): ComponentElement[P]
    Definition Classes
    React
  14. final def cloneElement(element: DomElement, props: Object, children: Node*): DomElement
    Definition Classes
    React
  15. final def cloneElement(element: DomElement, props: Object): DomElement
    Definition Classes
    React
  16. final def cloneElement(element: DomElement): DomElement
    Definition Classes
    React
  17. final def createContext[A <: Any](defaultValue: A): Context[A]
    Definition Classes
    React
  18. final def createElement[P <: Object](type: ComponentType[P], props: P, children: Node*): ComponentElement[P]
    Definition Classes
    React
  19. final def createElement[P <: Object](type: ComponentType[P], props: P): ComponentElement[P]
    Definition Classes
    React
  20. final def createElement[P <: Object](type: ComponentType[P]): ComponentElement[P]
    Definition Classes
    React
  21. final def createElement(type: String, props: Object, children: Node*): DomElement
    Definition Classes
    React
  22. final def createElement(type: String, props: Object): DomElement
    Definition Classes
    React
  23. final def createElement(type: String): DomElement
    Definition Classes
    React
  24. final def createElement(type: Symbol, props: Object, children: Node*): Element
    Definition Classes
    React
  25. final def createElement[P <: Object](l: Lazy[P], props: P, children: Node*): Element
    Definition Classes
    React
  26. final def createElement(s: Suspense.type, props: SuspenseProps, children: Node*): Element
    Definition Classes
    React
  27. 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
  28. final def createRef[A](): RefHandle[A]
    Definition Classes
    React
  29. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  30. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  31. final def forwardRef[P <: Object, R](f: Function2[P with PropsWithChildren, ForwardedRef[R], Node]): ForwardRefComponent[P, R]
    Definition Classes
    React
  32. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  33. def hasOwnProperty(v: String): Boolean
    Definition Classes
    Object
  34. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  35. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  36. def isPrototypeOf(v: Object): Boolean
    Definition Classes
    Object
  37. final def lazy[P <: Object](f: Function0[Promise[LazyResult[P]]]): Lazy[P]

    Definition Classes
    React
    Since

    16.6.0

  38. 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

  39. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  40. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  41. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  42. def propertyIsEnumerable(v: String): Boolean
    Definition Classes
    Object
  43. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  44. def toLocaleString(): String
    Definition Classes
    Object
  45. def toString(): String
    Definition Classes
    AnyRef → Any
  46. def valueOf(): Any
    Definition Classes
    Object
  47. final val version: String
    Definition Classes
    React
  48. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  49. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  50. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. 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.

Inherited from React

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped