Packages

t

react

ReactJS

trait ReactJS extends Object with Concurrent

Annotations
@JSType() @native()
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ReactJS
  2. Concurrent
  3. Object
  4. Any
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

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. val Children: Children
  5. val Component: Dynamic

    We are not importing this to be used in a class oriented way.

  6. val Fragment: ReactJSComponent
  7. val StrictMode: ReactJSComponent
  8. val Suspense: ReactJSComponent
  9. val SuspenseList: ReactJSComponent
    Definition Classes
    Concurrent
  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  12. def cloneElement(el: ReactElement, props: Dynamic): ReactDOMElement
  13. def createContext[T](defaultValue: T, calculateChangedBits: UndefOr[Function2[T, T, Int]]): ReactContext[T]
  14. 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.

  15. def createMutableSource[S](source: Any, getVersion: Function0[Any]): MutableSource[S]
    Definition Classes
    Concurrent
  16. def createRef[T](): ReactRef[T]

    Create a ref to be assigned to a "ref" property on a component.

  17. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  19. def forwardRef[T](): Object
  20. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. def hasOwnProperty(v: String): Boolean
    Definition Classes
    Object
  22. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. def isPrototypeOf(v: Object): Boolean
    Definition Classes
    Object
  25. def isValidElement(obj: Object): Boolean
  26. def lazy(lazyComponent: DynamicImportThunk): ReactJSLazyComponent

    Returns a "lazy" react component i.e.

    Returns a "lazy" react component i.e. $$type = react.lazy

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

  28. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  30. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  31. def propertyIsEnumerable(v: String): Boolean
    Definition Classes
    Object
  32. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  33. def toLocaleString(): String
    Definition Classes
    Object
  34. def toString(): String
    Definition Classes
    AnyRef → Any
  35. def useDeferredValue(value: Any, config: DeferredValueConfig): Any
    Definition Classes
    Concurrent
  36. 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
  37. def useTransition(config: TransitionConfig): Tuple2[Function1[Function0[Unit], Unit], Boolean]
    Definition Classes
    Concurrent
  38. def valueOf(): Any
    Definition Classes
    Object
  39. val version: String
  40. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  41. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  42. 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 Concurrent

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped