Preparing search index...
The search index is not available
Krmx - TypeScript SDK - Reference
Krmx - TypeScript SDK - Reference
Krmx State Client React
registerAtoms
Function registerAtoms
register
Atoms
(
client
)
:
(
<
T
>
(
key
,
def
)
=>
[
value
:
T
,
setter
:
(
(
v
)
=>
boolean
)
]
)
Register support for atoms on this client using React hooks.
Parameters
client
:
Client
Returns
(
<
T
>
(
key
,
def
)
=>
[
value
:
T
,
setter
:
(
(
v
)
=>
boolean
)
]
)
<
T
>
(
key
,
def
)
:
[
value
:
T
,
setter
:
(
(
v
)
=>
boolean
)
]
Type Parameters
T
extends
Atom
Parameters
key
:
string
def
:
T
Returns
[
value
:
T
,
setter
:
(
(
v
)
=>
boolean
)
]
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Krmx - TypeScript SDK - Reference
Krmx Base - v0.6.3
Krmx Server - v0.6.7
Krmx Client - v0.6.3
Krmx Client for React - v0.6.3
Krmx State Base - v0.0.4
Krmx State Server - v0.0.4
Krmx State Client React - v0.0.4
Register support for atoms on this client using React hooks.