Field Notes
Field Notes home
Docs
Playground
Preparing search index...
@fieldnotes/react
useActiveTool
Function useActiveTool
useActiveTool
()
:
[
toolName
:
string
,
setTool
:
(
name
:
string
)
=>
void
]
[activeToolName, setTool]
— re-renders on tool switches.
Returns
[
toolName
:
string
,
setTool
:
(
name
:
string
)
=>
void
]
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
Field Notes home
Docs
Playground
Field Notes
Loading...
[activeToolName, setTool]— re-renders on tool switches.