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,16 @@
|
||||
var React = require('react');
|
||||
|
||||
var Examples = React.createClass({
|
||||
render: function () {
|
||||
return (
|
||||
<h3>Examples Component</h3>
|
||||
);
|
||||
}
|
||||
});
|
||||
// var Examples = React.createClass({
|
||||
// render: function () {
|
||||
// return (
|
||||
// <h3>Examples Component</h3>
|
||||
// );
|
||||
// }
|
||||
// });
|
||||
|
||||
var Examples = () => {
|
||||
return (
|
||||
<h3>Examples Component</h3>
|
||||
);
|
||||
};
|
||||
module.exports = Examples;
|
||||
|
||||
Reference in New Issue
Block a user