Skip to content

Instantly share code, notes, and snippets.

@mhink
Created April 18, 2017 17:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mhink/9b69c5c0a6beab09ec0f2b52d2f7dc23 to your computer and use it in GitHub Desktop.
Save mhink/9b69c5c0a6beab09ec0f2b52d2f7dc23 to your computer and use it in GitHub Desktop.
const FooBar = () => (
<div>Hello, world!</div>
);
const FooBarEquivalent = () => (
React.createElement("div", {}, ["Hello, world!"])
);
const MyComponent = (
<FooBar />
);
const MyComponentEquivalent = (
React.createElement(FooBar, {}, [])
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment