Using Material UI / Preact compatible component library
See original GitHub issueHi,
I was trying to include Material UI since it is compatible with preact: https://twitter.com/preactjs/status/1152267975078154240?lang=en-GB
And including MUI core as a dependency as in normal deno: https://github.com/denoland/deno/issues/7282
However I run into [object Object] is not a valid HTML tag name
: https://github.com/denoland/deno/issues/7282 when doing it both as a route and as an island.
Would in general all the packages in https://preactjs.com/about/libraries-addons/ technically be usable with Fresh ?
Issue Analytics
- State:
- Created a year ago
- Comments:10
Top Results From Across the Web
preact-material-components
preact -material-components is a thin opinionless wrapper around material-components-web. Use these components to add material components to your web app, ...
Read more >Material-UI 1.2.1 not working with Preact #476 - GitHub
Hi, Just create a default template preact-cli project, add material-ui and just use Button at https://material-ui.com/getting-started/usage/ An error is ...
Read more >10 Top Preact Libraries and Tools for 2020 - Bits and Pieces
React class components and Function UI components work well with ClearX. You can simply install ClearX with the following NPM command: Follow ...
Read more >Comparison with other libraries - Material-UI
Material -UI · Material Design Lite (MDL) · Material Components Web (MDC-web) · Materialize · React Toolbox ...
Read more >Headless components in React and why I stopped using a UI ...
There are great React UI libraries out there, but I often find them too opinionated, hard to customize and quite big in size....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@marsidev I had the same issue, updating the
preact
deps version in the@mui/material
import line to the same than fresh is using10.11.0
fixed the issue for me, example.I got it to work by adding this to the
import_map.json
. (I tested with this example from MUI’s Website and I got an alert in the browser)"@mui/material": "https://esm.sh/@mui/material@5.8.7?alias=react:preact/compat,react/jsx-runtime:preact/compat/jsx-runtime&deps=preact@10.8.1"