@tokyo_0 if you hate JavaScript, maybe HTMX is the way to go. React is for people who like JavaScript and don't really like HTML. Also a heavy lift for a small website, a lot of learning and a lot of code and tooling needed to get something off the ground. React has some job market value, though, if that matters to you.
Conversation
Notices
-
Embed this notice
Joe Cooper 💾 (swelljoe@mas.to)'s status on Wednesday, 29-May-2024 13:51:57 JST Joe Cooper 💾 -
Embed this notice
Joe Cooper 💾 (swelljoe@mas.to)'s status on Wednesday, 29-May-2024 14:16:04 JST Joe Cooper 💾 @tokyo_0 also quite large and JavaScript-heavy, and needs all the usual JavaScript tooling, but it does seem to be where people overwhelmed by the weight of React, but who still want a full-featured JavaScript frontend framework go. To me, it has most of the same negatives as React and a smaller ecosystem. But, I wouldn't use either for small projects, unless I was joining an existing project that was already using it.
-
Embed this notice
Joe Cooper 💾 (swelljoe@mas.to)'s status on Wednesday, 29-May-2024 14:32:16 JST Joe Cooper 💾 @tokyo_0 I may dislike the JavaScript development ecosystem more than you, though. I hate how even simple projects balloon into millions of lines of code almost instantly the moment you use something like React. Really, any time you're using npm/yarn/etc. you're gonna have an explosion of dependencies, now you need WebPack, tree-shaking, etc. For me, being able to add one line to pull in HTMX and then do everything requiring smarts on the backend, with possibly no JS, is ideal.
-
Embed this notice
Joe Cooper 💾 (swelljoe@mas.to)'s status on Wednesday, 29-May-2024 14:37:03 JST Joe Cooper 💾 @tokyo_0 I mean, it's always gonna be a pain in the ass somewhere. Software is hard, and most of the time is spent learning, no matter what path you take. There are plenty of smart people using React, Vue, and all the other eleventy thousand JS/TS frameworks. I just don't like pulling in that much code I don't have familiarity with. But, you'll never hurt your value on the job market or ability to work on a lot of OSS projects by learning more JavaScript/TypeScript.
-
Embed this notice
Pascal (pascal@moth.social)'s status on Thursday, 30-May-2024 21:24:32 JST Pascal @tokyo_0 another option to consider is #sveltekit (https://kit.svelte.dev). Each page has an optional server component which can fetch data (e.g. from a JSON api) and pass it to the page.
-
Embed this notice