preact-material-components: Cannot set property className of #
catch-error.js?88ae:35 Uncaught TypeError: Cannot set property className of #<Object> which has only a getter
at DialogFooterButton.render (MaterialComponent.js?de07:46)
“preact”: “^10.1.0” “preact-cli”: “^3.0.0-rc.6”
About this issue
- Original URL
- State: open
- Created 4 years ago
- Reactions: 2
- Comments: 16 (6 by maintainers)
I used @zeit-ui/react which pretty good for my use case and backed by the company. Other than that, it turns out you can use @material-ui with preact, you gotta be careful with bundle size though (meaning use only what you can’t recreate easily: Modal? use it, button? probably not, that’s my thought process anyway). I hope this helps.