Last active
July 1, 2016 08:50
-
-
Save ehrudxo/abea06e5da36555cf3fbc878920faca7 to your computer and use it in GitHub Desktop.
Comparing Creating Class in React
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 MugreComponent extends React.Component { | |
render() { | |
return ( | |
<div>mugre contents!</div> | |
); | |
} | |
} | |
export default MugreComponent; |
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'; | |
var MugreComponent = React.createClass({ | |
render(){ | |
return( | |
<div>mugre contents!</div> | |
); | |
} | |
}); | |
export default MugreComponent; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment