-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Preact support #7721
Comments
I'm sure the lead maintainers will weigh in on this, but to my understanding there are a few known issues here and there eg #7538 |
I haven't test. I would expect some issues with preact. Still, we would love to see the support of preact comes true. That's not something I will work on, but I hope someone will take the lead on this issue. |
ok so it works with react ? only ? |
Most of the components should be working but we potentially have edge cases where they don't. Hard to tell until someone giving us a better understanding of the situation. |
@oliviertassinari I'm about to start a new project and with preact-cli and Material UI. I'll send PR/issues when I found something doesn't work with Preact. |
@thangngoc89 Awesome, let us know how it goes 👍 . |
If you guys only use public API of React, there shouldn't be any issue. But React v16 compat is not a thing yet. |
The Apache Software Fondation has raised some concerns around the licence of React.
I think that it's important to have an escape route like preact. This is the most interesting article I have found on the topic. While the patent clause on itself sounds like a good idea, the strong aspect of the patent retaliation clauses sounds like a general defensive clause for Facebook, unrelated to React. |
Would someone trying to get the test suite passing using |
I've been using Material-UI with Preact-CLI for the past month. It's been powering our internal dashboard. The only real issue I've found is that modals don't work. It seems timing related, and @developit seemed to think the same. I'm going to work on a fix this weekend if noone gets to it. I documented the issue well on my end, so I'll provide those as well maybe later today. |
@hassanbazzi that must be because of |
@rosskevin are you referring to something like this? https://github.com/developit/preact-portal |
Yes |
I have been giving a shot at this issue with #8119. |
React license has changed based on community feedback. https://ihatetomatoes.net/react-license-updated/. Does this change this req or is preact support required for non-license reasons? |
@dcworldwide We can get a 10% time to interaction improvement for the documentation. So yes. I think that it's still interesting. |
@dcworldwide Well, at least I want to compare preact with the |
It’s not about choosing one or the other, but allowing downstream users to make the choice for themselves, right? |
Modals still not work in preact, using preact-compat package (which provides same React API). |
A new alternative is available: nerv. I'm eager to see if we can support this library. |
Almost works! I will try again once createFactory API (NervJS/nerv#17) is supported as well. |
I've problem with I'm using material-ui 1.0.0-beta.35. |
When uglifying with `unused: true` MuiThemeProvider returns its children as an array instead of an VNode, which makes the whole element become `undefined`. mui/material-ui#7721 (comment)
When uglifying with `unused: true` MuiThemeProvider returns its children as an array instead of an VNode, which makes the whole element become `undefined`. mui/material-ui#7721 (comment)
I fear that supporting Preact would require us to sacrifice some feature of React that are not yet supported by Preact. The situation is probably worse now that when this issue was opened. React 16 has introduced quite some new features ( The market share hasn't evolved much in a year. Preact still accounts for around 2% of the React downloads. React 16.x payload has greatly improved. I'm closing for preactjs/preact-compat#476 |
Can we use the material-ui with preach ?
The text was updated successfully, but these errors were encountered: