hcifootprint/reactFunctions
useControl
Function: useControl()
useControl(
spec):ControlRef
Defined in: src/react/use-control.ts:59
Declare this element as the control for one edge, for as long as it is rendered.
const ref = useControl({ edge: 'compose.send', value: () => draft });
return createElement('button', { ref, onClick: send }, 'Send');