trait react18 extends AnyRef
- Alphabetic
- By Inheritance
- react18
- 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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def useDeferredValue[A](value: A): HookResult[A]
Lets you defer updating a part of the UI.
Lets you defer updating a part of the UI.
- Annotations
- @inline()
- See also
- final def useId: HookResult[String]
Generates unique IDs that can be passed to accessibility attributes.
Generates unique IDs that can be passed to accessibility attributes.
- Annotations
- @inline()
- See also
https://react.dev/reference/react/useId
- final def useInsertionEffect[A](effect: A)(implicit isEffectArg: UseEffectArg[A]): HookResult[Unit]
The signature is identical to useEffect, but it fires synchronously after all DOM mutations, but before any layout Effects fire.
The signature is identical to useEffect, but it fires synchronously after all DOM mutations, but before any layout Effects fire. Use this to insert styles before any Effects fire that may need to read layout. Updates scheduled inside useLayoutEffect will be flushed synchronously, before the browser has a chance to paint.
Prefer the standard useEffect when possible to avoid blocking visual updates.
If you'd only like to execute the effect when your component is mounted, then use useInsertionEffectOnMount. If you'd only like to execute the effect when certain values have changed, then use useInsertionEffectWithDeps.
- Annotations
- @inline()
- See also
https://react.dev/reference/react/useInsertionEffect#useInsertionEffect
- final def useInsertionEffectOnMount[A](effect: A)(implicit isEffectArg: UseEffectArg[A]): HookResult[Unit]
The signature is identical to useEffect, but it fires synchronously after all DOM mutations, but before any layout Effects fire.
The signature is identical to useEffect, but it fires synchronously after all DOM mutations, but before any layout Effects fire. Use this to insert styles before any Effects fire that may need to read layout. Updates scheduled inside useLayoutEffect will be flushed synchronously, before the browser has a chance to paint.
Prefer the standard useEffect when possible to avoid blocking visual updates.
This will only execute the effect when your component is mounted.
- Annotations
- @inline()
- See also
https://react.dev/reference/react/useInsertionEffect#useInsertionEffect
- final def useInsertionEffectWithDeps[D, A](deps: => D)(effect: (D) => A)(implicit arg0: Reusability[D], isEffectArg: UseEffectArg[A]): HookResult[Unit]
The signature is identical to useEffect, but it fires synchronously after all DOM mutations, but before any layout Effects fire.
The signature is identical to useEffect, but it fires synchronously after all DOM mutations, but before any layout Effects fire. Use this to insert styles before any Effects fire that may need to read layout. Updates scheduled inside useLayoutEffect will be flushed synchronously, before the browser has a chance to paint.
Prefer the standard useEffect when possible to avoid blocking visual updates.
This will only execute the effect when values in the first argument change.
- Annotations
- @inline()
- See also
https://react.dev/reference/react/useInsertionEffect#useInsertionEffect
- final def useSyncExternalStore[F[_], A](subscribe: (F[Unit]) => F[F[Unit]], getSnapshot: F[A], getServerSnapshot: UndefOr[F[A]] = js.undefined)(implicit F: Sync[F]): HookResult[A]
Lets you subscribe to an external store.
Lets you subscribe to an external store.
- Annotations
- @inline()
- See also
- final def useTransition: HookResult[UseTransition]
Allows components to avoid undesirable loading states by waiting for content to load before transitioning to the next screen.
Allows components to avoid undesirable loading states by waiting for content to load before transitioning to the next screen. It also allows components to defer slower, data fetching updates until subsequent renders so that more crucial updates can be rendered immediately.
**If some state update causes a component to suspend, that state update should be wrapped in a transition.**
- Annotations
- @inline()
- See also
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()