Skip to content

How to extract machine into component #1970

Answered by segunadebayo
azoriusss asked this question in Q&A
Discussion options

You must be logged in to vote

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

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@azoriusss
Comment options

Answer selected by segunadebayo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants