scratch-www/src/views/splash/splash.jsx

33 lines
710 B
React
Raw Normal View History

2015-09-02 15:08:58 -04:00
var React = require('react');
var Api = require('../../mixins/api.jsx');
var News = require('../../components/news/news.jsx');
require('./splash.scss');
var View = React.createClass({
mixins: [
Api
],
getInitialState: function () {
return {
news: []
};
},
componentDidMount: function () {
2015-09-02 16:33:31 -04:00
// @todo API request for News
// @todo API request for Activity
// @todo API request for Featured
2015-09-02 15:08:58 -04:00
},
render: function () {
return (
<div>
<h1>I am the splash page!</h1>
2015-09-02 16:33:31 -04:00
<News />
2015-09-02 15:08:58 -04:00
</div>
);
}
});
React.render(<View />, document.getElementById('view'));