I'm using the latest stable version of Material UI in my production React app.
I need the updated Data Tables component, which is currently in Material UI's unstable alpha branch.
I don't want to upgrade my whole app with npm i material-ui@next because of the numerous breaking changes.
How can I access the alpha library without upgrading my whole library? Can I install two versions of MUI? Can I call on the alpha API without installing it through NPM?
Thanks in advance.
npmis not possible. The best workaround I've seen is to create a "shim" package (exmaterial-ui-nextthat depends onmaterial-ui@next) and depend on that in your project.installa local filesystem module usingnpm install ./path/to/material-ui-nextor you can usenpm link.