Created
March 19, 2017 23:08
-
-
Save srph/12d702c8d2198db08e63689e5be6ddb4 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'; | |
| const Template = () => | |
| <div /> | |
| export default Template; |
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 Template from './template'; | |
| class Typeahead extends React.Component { | |
| render() { | |
| return Template(/* props */); | |
| // or return <Template {/* props */} /> | |
| } | |
| } | |
| export default Template; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment