nci/static/js/app/components/app/index.js
2015-07-11 15:24:35 +03:00

25 lines
473 B
JavaScript

'use strict';
define([
'react',
'react-router',
'app/actions/project',
'app/components/header/index',
'templates/app/components/app/index'
], function(React, Router, ProjectActions, Header, template) {
template = template.locals({
Link: Router.Link,
Header: Header,
RouteHandler: Router.RouteHandler
});
var Component = React.createClass({
componentWillMount: function() {
ProjectActions.readAll();
},
render: template
});
return Component;
});