Created
April 18, 2017 17:02
-
-
Save mhink/9b69c5c0a6beab09ec0f2b52d2f7dc23 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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