Crate react

Source

Re-exports§

pub use react_sys as sys;

Modules§

__private
any_js_props
event

Macros§

__impl_let_dep_list
__impl_let_dep_list_memo
__impl_pass_dep
auto_wrap_rc
children
A shorthand to create tuple of react children.
use_effect
use_effect with dependencies.
use_memo
use_ref
use_ref macro will auto wrap value into Rc<T>.
use_state

Structs§

AnyFn
AnyFnMut
AnyFnOnce
AnyNodeValue
A number, string, boolean or Array<ReactNode> that are not elements but valid ReactNode
Element
Why not react_sys::Element
Fragment
FragmentElement
JsBridgeElement
Key
Keyed
A NewType style struct which marks the inner element is created with
MutableRefJs
MutableRefRc
NoProps
OptionalChildrenProps
PassedToJsRuntime
ReadRefRc
StateSetter
StrictMode
StrictModeElement
UseRenderElement

Enums§

AnyNode
Children
One or many AnyNodes whose order will never change. When Children is used as
JsComponentType

Traits§

AsKey
Component
ComponentStatic
DynFn
DynFnMut
DynFnOnce
FnMutOfArgs
FnOfArgs
FnOnceOfArgs
IntoBoxed
IntoElement
IntoOptionalCleanFn
IntoOptionalElement
IntoOptionalRc
IntoPropValue
IntoRc
IntoRefValue
MutableRef
Node
Corresponding to ReactNode in typescript
Props
PropsBuilder
ReadRef
RenderIntoDom
SafeIntoJsRuntime
TakeRc
UseRender
UseRenderStatic
WriteRef

Functions§

render_into_dom_by_id
use_effect_on_each_render
use_effect_on_mounted
use_effect_one
React.useEffect with exactly one dependency. To use multiple dependencies, see [use_effect].
use_memo_no_dep
use_memo_one
use_ref
use_ref_cell
use_ref_cell_with
use_ref_js
use_ref_js_set_as
use_ref_js_with
use_ref_readonly
use_ref_readonly_with
use_ref_set_as
value will be the initial value. And in each render, if value changes, the MutableRefRc will be set as it.
use_ref_with
use_state
use_state_value

Type Aliases§

DynUseRenderFn
FragmentProps
StrictModeProps