Skip to content

Instantly share code, notes, and snippets.

@benheb
Created September 7, 2023 19:28
Show Gist options
  • Save benheb/d79f190bc9ead492092db8cd3db22f03 to your computer and use it in GitHub Desktop.
Save benheb/d79f190bc9ead492092db8cd3db22f03 to your computer and use it in GitHub Desktop.
component structure
<Modal
onCancel
onSubmit
Fields
>
<Form
onSubmit
onCancel
Fields
>
{...children}
<AsyncSelectChild
Fields
onSubmit
onCancel
>
<Modal
Fields
onSubmit
onCancel
>
<Form
Fields
onCancel
onSubmit
>
{...children}
</Form>
</Modal>
</AsyncSelectChild>
</Form>
</Modal>
@benheb
Copy link
Author

benheb commented Sep 7, 2023

Modal
requires Form
Form
requires AsyncSelectChild
AsyncSelectChild
requires Modal
Modal
requires Form
Form
requires AsyncSelectChild
AsyncSelectChild
requires Modal
...etc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment