Dort haben sie verwendet
Code: Select all
const [registry] = useState(getItemRegistry);
// Isolated instances of this component from one another
const [instanceId] = useState(() => Symbol('instance-id'));
Sandbox-Link
Code: Select all
const [registry] = useState(getItemRegistry);
// Isolated instances of this component from one another
const [instanceId] = useState(() => Symbol('instance-id'));