News for hackers. Stuff that matters.
Re:TailwindCSS JIT with arbitrary values by qbasic_forever on Wednesday April 07, 2021 @06:19PM (#26732195)
Ah, yeah component makers are in a hard spot right now. You can't really write a 'generic' component easily and have to take a bet on using whatever JS framework is in vogue--react, vue, etc. It's not easy for a react project to pick up a vue component and use it or vice-versa. Even ignoring the framework incompatibilities, it also requires your component users to now buy in to the whole bundler game.

You could work around this by sticking with a generic, simpler framework like good ole jQuery. But now your framework users in react, vue, etc. are mad that they need to pull in kilobytes of JS that's doing what their framework already does.

So... as a component author a bundle of HTML and bring your own logic is kind of the only low-level option that's ubiquitous. Things might get better with web components, but it's not all there yet.

Re:TailwindCSS JIT with arbitrary values by aabbcc1241 on Wednesday April 07, 2021 @09:13PM (#26733878)
Ionic approaches this problem with stencil. So the ionic components can be used by not only angular projects, but also react / vue / vanilla js
Re:TailwindCSS JIT with arbitrary values by goodoldneon on Wednesday April 07, 2021 @06:36PM (#26732396)
Maybe they're hoping the community creates the framework-specific implementations?
Re:TailwindCSS JIT with arbitrary values by vijaybritto on Thursday April 08, 2021 @02:43AM (#26735808)
Yes thats the intent. They handle only styling and framework integrations are upto the community