Created
November 11, 2018 17:17
-
-
Save rocksinghajay/67988d9954d4d15b1924f7e037875477 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 createClass = React.createClass { | |
| state = { | |
| title: "This is createClass component example" | |
| } | |
| render() { | |
| const { title } = this.state | |
| return ( | |
| <div> | |
| <h2> | |
| {title} | |
| </h2> | |
| </div> | |
| ); | |
| } | |
| } | |
| export default createClass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment