Last active
February 27, 2018 13:20
-
-
Save treyhuffine/0b4fd7d56f8dd785b90bb7f40be30359 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import React from 'react'; | |
import SharedComponent from 'components/SharedComponent'; | |
const SayHello = () => ( | |
<SharedComponent render={() => ( | |
<span>hello!</span> | |
)} /> | |
); | |
// This would return: | |
// <div> | |
// <span>hello!</span> | |
// </div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment