material ui - Using ShadowDOM to address MUI 5 vs MUI 6 Compatibility Issue? - Stack Overflow

admin2025-04-30  0

I have a React component Library that has recently upgraded to MUI 6. A lot of the consuming applications still use MUI 5. The consuming apps now can’t use new versions of the library because it uses some features exclusive to MUI 6. If I wrapped the components in my library inside a ShadowDOM wrapper, would the consuming applications be able to use my MUI 6 library despite still being on MUI 5?

转载请注明原文地址:http://anycun.com/QandA/1746024771a91503.html