How to extract machine into component #1970
-
Hi everyone ! If I write this ( Disclaimer : this is a useless case juste for example)
Then the checkbox does not work. Is this expected behaviour ? Is there some work around ? Thanks ! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You want to create a React context for subcomponents and share the Here's an example |
Beta Was this translation helpful? Give feedback.
You want to create a React context for subcomponents and share the
api
between them.Here's an example
https://stackblitz.com/edit/8ur6n2?file=src%2FApp.tsx,src%2FCheckbox.tsx&showSidebar=0