pitaya-launcher/js/app.jsx

30 lines
565 B
React
Raw Normal View History

2015-08-27 18:24:29 +02:00
var React = require('react');
var CategoryHeader = require('./components/category-header.jsx');
var AppList = require('./components/app-list.jsx');
var App = React.createClass({
getInitialState: function() {
return {
currentItem: null
};
},
componentDidMount: function() {
},
render: function() {
return (
<div className="launcher">
<CategoryHeader currentItem={this.state.currentItem} />
<AppList />
</div>
);
}
});
var rootEl = document.getElementById('pitaya');
React.render(<App />, rootEl);