Skip to content

Instantly share code, notes, and snippets.

@choonkending
Created August 2, 2017 01:53
Show Gist options
  • Save choonkending/37afe9f834ca22828e301a7ae0934d39 to your computer and use it in GitHub Desktop.
Save choonkending/37afe9f834ca22828e301a7ae0934d39 to your computer and use it in GitHub Desktop.

Use Case

/* @flow */
type Props = { foo: string };
const View = ({ foo }: Props) => <div>{ foo }</div>;

// Consumer renders View

<View foo='bar' />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment