mirror of
https://github.com/zebrajr/react.git
synced 2025-12-06 12:20:20 +01:00
23 lines
317 B
JavaScript
23 lines
317 B
JavaScript
'use strict';
|
|
|
|
var React = require('React');
|
|
|
|
// Comment
|
|
module.exports = class extends React.Component {
|
|
constructor(props, context) {
|
|
super(props, context);
|
|
|
|
this.state = {
|
|
foo: 'bar',
|
|
};
|
|
}
|
|
|
|
render() {
|
|
return <div />;
|
|
}
|
|
};
|
|
|
|
module.exports.propTypes = {
|
|
foo: React.PropTypes.bool,
|
|
};
|