3 ms·
Yeah, it's a mess. Learn CSS. For real. Use the cascade, it's there for a reason. CSS has variables and animations and can even do interactivity. Vanilla JS wil
by easrng 5y ago
Yeah, it's a mess. Learn CSS. For real. Use the cascade, it's there for a reason. CSS has variables and animations and can even do interactivity. Vanilla JS will take you far if you learn it thoroughly. (MDN[0] is your friend) ES Modules exist and work natively in the browser. Use them to organize your code. React is crazy popular, learning it is good to have it on your résumé if nothing else, but it needs huge and slow dev tooling. If you want a framework, use Preact[1] (React but tiny, if you use it with htm[2] you won't need a build step) or Svelte[3]. Babel isn't needed unless you are targeting old browsers, and even if you are Closure Compiler[4] works better.
[0]: https://developer.mozilla.org/ https://developer.mozilla.org/
[1]: https://preactjs.com/ https://preactjs.com/
[2]: https://github.com/developit/htm https://github.com/developit/htm
[3]: https://svelte.dev/ https://svelte.dev/
[4]: https://developers.google.com/closure/compiler/ https://developers.google.com/closure/compiler/