Skip to content

Instantly share code, notes, and snippets.

@ehrudxo
Last active July 1, 2016 08:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ehrudxo/abea06e5da36555cf3fbc878920faca7 to your computer and use it in GitHub Desktop.
Save ehrudxo/abea06e5da36555cf3fbc878920faca7 to your computer and use it in GitHub Desktop.
Comparing Creating Class in React
import React from 'react';
class MugreComponent extends React.Component {
render() {
return (
<div>mugre contents!</div>
);
}
}
export default MugreComponent;
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