Skip to content

Instantly share code, notes, and snippets.

@jurosh
Created June 7, 2016 09:03
Show Gist options
  • Save jurosh/6e487cdc4bb749d35826dbc08669ef78 to your computer and use it in GitHub Desktop.
Save jurosh/6e487cdc4bb749d35826dbc08669ef78 to your computer and use it in GitHub Desktop.
React Redux example index.js components file
// Basic
import Button from 'components/button';
import Dropdown from 'components/dropdown';
export default {
Button,
Dropdown
};
// Competition
import ListDateTitle from 'components/competition/list/dateTitle';
import List from 'components/competition/list';
export const competition = {
ListDateTitle,
List
};
// Layout
import Footer from 'components/layout/footer';
import Header from 'components/competition/asdasd';
export const layout = {
Footer,
Header
};
/**
Usage as:
import { layout, competition } from 'components';
import Button from 'components';
<layout.Footer>
<competition.ListingComponentDropdown item=[1231532,4564651,15464]>
<Button></Button>
</competition.ListingComponentDropdown>
</layout.Footer>
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment