Module wasm_react::hooks

source ·
Expand description

This module contains bindings to React hooks.

Structs

Functions

  • Returns a memoized callback.
  • Allows access to the current context value of the given context.
  • Returns the given value, or in case of urgent updates, returns the previous value given.
  • Runs a function which contains imperative code that may cause side-effects.
  • Returns a unique component ID which is stable across server and client.
  • This hook can persist JS data through the entire lifetime of the component.
  • Same as use_effect(), but it fires synchronously after all DOM mutations.
  • Returns a persisted, memoized value.
  • This is the main hook for persisting Rust data through the entire lifetime of the component.
  • Persist stateful data of the component.
  • Returns a stateful value for the pending state of the transition, and a function to start it.