You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
orreact-menu/dist/react-menu
. The first fails, because the files inlib
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.
The text was updated successfully, but these errors were encountered: