4 ms·
Congrats! I've played with this on various projects for year now. The only thing I keep getting frustrated with is styling with Typescript. I don't like the wi
by vyrotek 8y ago
Congrats! I've played with this on various projects for year now.
The only thing I keep getting frustrated with is styling with Typescript. I don't like the withStyles HoC but the alternatives still feel difficult to use.
I would love to just use a decorator but I believe there's a TypeScript feature still missing in order to support it correctly. I'm curious if the recently announced TS 2.9 changes will help.
- kross 8y agoMyself and many others are using typescript styling with success. If you have a specific problem, please file an issue so we can take a look.
- vyrotek 8y agoFor the record I'm referring to the scenarios described here. https://material-ui.com/guides/typescript/#usage-of-withstyles https://material-ui.com/guides/typescript/#usage-of-withstyl... And this TS issue: https://github.com/Microsoft/TypeScript/issues/4881 https://github.com/Microsoft/TypeScript/issues/4881 The guide just comes off as a bunch of subpar workarounds.