Module consecuit::hooks[][src]

Expand description

Essential hooks you can build other hooks with.

Structs

A reference with interior mutability. Somewhat like RefCell. Returned by use_ref.

A handle returned by use_state for updating the state.

Functions

Runs the function with the arg as argument when the arg changes.

Like use_effect, but takes a closure instead of a function.

Memoize the computation.

Like use_memo, but takes a closure instead of a function.

Use a Reference.

Use a state. The given value will be the default.

Use a state. The given closure will be used to create the initial value.