akiran / react-foundation-apps

Foundation Apps components built with React
http://webrafter.com/opensource/react-foundation-apps
MIT License
292 stars 46 forks source link

Add module exporting to the index file #3

Closed AJCStriker closed 9 years ago

AJCStriker commented 9 years ago

This pull request aims to make the library more flexible internally by moving the require statements to a library level.

For example this would change this call:

Accordion = require('react-foundation-apps/lib/accordion')

into this call:

Accordion = require('react-foundation-apps').Accordion

We built this for ourselves so that we can conform with other library import statements and allow some flexibility in more structural changes to the guts of the library.

It is using our internal javascript code style which can look a bit weird, but I thought it would be worth contributing it back to the Open Source Library.

akiran commented 9 years ago

@AJCStriker Thanks for the pull request. Merged it.

If there is any other feedback let me know.