mirror of
https://github.com/Raghu-Ch/ReactWeather.git
synced 2026-02-10 11:03:02 -05:00
Refactoring: Stateless functional components
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user