useSharedState Demo by Scaleup Consulting

This is a simple hook which can be initialised with const VARIABLE = new SharedStateTarget(initialValue); outside a component, and then used within a component as const [state, setState] = VARIABLE.useSharedState();

Input field 1

Input field 2

Checkboxes 1

Checkboxes 2

Checkboxes - Input

Input - Checkboxes