scratch-www/src/components/extension-landing/extension-landing.jsx

25 lines
479 B
JavaScript

const bindAll = require('lodash.bindall');
const React = require('react');
const detectOS = require('../../lib/detect-os.js').default;
class ExtensionLanding extends React.Component {
constructor (props) {
super(props);
bindAll(this, [
'onSetOS'
]);
this.state = {
OS: detectOS()
};
}
onSetOS (os) {
this.setState({
OS: os
});
}
}
module.exports = ExtensionLanding;