Skip to content

Instantly share code, notes, and snippets.

@isnifer
Last active August 29, 2015 14:26
Show Gist options
  • Save isnifer/7e4b3b7b5119c3894bc9 to your computer and use it in GitHub Desktop.
Save isnifer/7e4b3b7b5119c3894bc9 to your computer and use it in GitHub Desktop.
// In React Component
import React from 'react';
import FluxComponent from 'flummox/component';
/* Components */
import GiveawaySearch from '../common/GiveawaySearch';
import Footer from '../common/Footer';
import Content from '../common/Content';
import Container from '../common/Container';
import Giveaways from '../pageComponents/MainPage/Giveaways';
import Top from '../pageComponents/MainPage/Top';
const MainPage = React.createClass({
render () {
return (
<Content>
<GiveawaySearch />
<Container>
<FluxComponent connectToStores={['MainPage']}>
<Giveaways />
<Top />
<Footer />
</FluxComponent>
</Container>
</Content>
);
}
});
export default MainPage;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment