30 lines
565 B
React
30 lines
565 B
React
|
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);
|