Created
June 7, 2016 09:03
-
-
Save jurosh/6e487cdc4bb749d35826dbc08669ef78 to your computer and use it in GitHub Desktop.
React Redux example index.js components file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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