Files
freeCodeCamp/common/app/App.jsx

38 lines
700 B
React
Raw Normal View History

2015-06-17 21:04:28 -07:00
import React, { PropTypes } from 'react';
import { contain } from 'thundercats-react';
2015-07-04 08:16:42 -07:00
import { Row } from 'react-bootstrap';
2015-06-17 21:04:28 -07:00
2015-07-03 17:46:58 -07:00
import { Nav } from './components/Nav';
import { Footer } from './components/Footer';
2015-06-17 21:04:28 -07:00
export default contain(
{
store: 'appStore',
fetchAction: 'appActions.getUser',
getPayload(props) {
return {
isPrimed: !!props.username
};
}
},
React.createClass({
displayName: 'FreeCodeCamp',
2015-06-17 21:04:28 -07:00
propTypes: {
children: PropTypes.node
},
2015-06-17 21:04:28 -07:00
render() {
return (
<div>
<Nav />
<Row>
{ this.props.children }
</Row>
<Footer />
</div>
);
}
})
);