Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: How to use without Browserify? #22

Open
jeffkole opened this issue Jul 14, 2015 · 0 comments
Open

Question: How to use without Browserify? #22

jeffkole opened this issue Jul 14, 2015 · 0 comments

Comments

@jeffkole
Copy link

Most reusable React components I have seen offer a CommonJS-compatible distribution that has the JSX files transpiled to ES5. You do have a version of these files in dist, but they rely on having a global React reference instead of it being required.

In our environment (where we render on the server and use webpack to prepare files for the browser), we cannot directly require either react-menu or react-menu/dist/react-menu. The first fails, because the files in lib include JSX and the second fails because we do not expose React globally.

Do you have a suggestion? I'm happy to offer a pull request with your guidance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant