Refactoring: Stateless functional components

This commit is contained in:
2017-01-15 01:39:19 -08:00
parent 5926538f35
commit 01d5f986b1
8 changed files with 128 additions and 47 deletions

View File

@@ -1,11 +1,17 @@
var React = require('react');
var About = React.createClass({
render: function (){
return (
<h3>About Component</h3>
);
}
});
// var About = React.createClass({
// render: function (){
// return (
// <h3>About Component</h3>
// );
// }
// });
var About = (props) => {
return (
<h3>About Component</h3>
);
};
module.exports = About;