Created
May 27, 2018 12:57
-
-
Save nolimits4web/e78ee835605299814d6bc99d7c8fb004 to your computer and use it in GitHub Desktop.
Phenome -> React Component
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
import React from 'react'; | |
class MyCard extends React.Component { | |
constructor(props) { | |
super(props); | |
} | |
render() { | |
return React.createElement( | |
'div', | |
{ | |
className: 'card', | |
id: 'some-id', | |
}, | |
React.createElement('p', null, 'This is card') | |
); | |
} | |
} | |
export default MyCard; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment