Created
May 8, 2017 12:32
-
-
Save xuyuji9000/6a24d4c7112826798af42c662c6b25bb to your computer and use it in GitHub Desktop.
A demo showcase how to use create-react-class to create 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
let TickTock = createReactClass({ | |
componentDidMount: function() | |
{ | |
// fetch data action here | |
}, | |
render: function() | |
{ | |
return ( | |
<div> | |
render the class | |
</div> | |
) | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment