Skip to content

Instantly share code, notes, and snippets.

@behnamazimi
Created November 8, 2020 10:34
Show Gist options
  • Save behnamazimi/ad79e92751aa422f9df55eb79efd5e04 to your computer and use it in GitHub Desktop.
Save behnamazimi/ad79e92751aa422f9df55eb79efd5e04 to your computer and use it in GitHub Desktop.
function MyComponent({ x, y, children}) {
return children({prop1, prop2, ...});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment