Skip to main content

FocusedLinkId Usage

The focusedLinkId is the linkId of the item that is currently focused on.

Try clicking anywhere on an item to see the focusedLinkId change.

Live Editor
function App() {
  const focusedLinkId = useQuestionnaireStore.use.focusedLinkId();

  return (
    <>
      <YourBaseRendererWrapper questionnaire={qCalculatedExpressionBMICalculator} />
      <JsonViewer hookName="focusedLinkId" data={focusedLinkId} />
    </>
  );
}
Result
Loading...