r/javascript • • May 23 '26

[deleted by user]

[removed]

5 Upvotes

28 comments sorted by

View all comments

Show parent comment

2

u/Aditya00128 May 23 '26

Another thing I forgot to mention, this one isn't logical but -

Sometimes thehvest tool is simply the one that lets you get stuff done and you enjoy using it

Doesn't always work, but worth considering

0

u/[deleted] May 23 '26

[deleted] — view deleted comment

2

u/AwayVermicelli3946 May 25 '26

since you mentioned Python, you might honestly like HTMX if you ever add a backend. but for keeping it static on Cloudflare Pages, i definitely agree with looking into Astro.

i moved a messy vanilla JS project to Astro last year and it felt super natural. you don't have to rewrite everything at once. you can just keep your standard HTML and JS for the simple recipe pages.

fwiw, you can drop in a React component strictly for the interactive stuff like the meal calendar. it keeps you from fighting state management on pages that are just text.

0

u/[deleted] May 25 '26

[deleted] — view deleted comment

2

u/Aditya00128 Jun 11 '26

Sorry for the late response but yea Astro can do interactivity pretty seamless

2 things to note

  1. you can use any other lib you want - React, Svelte, Vue. And it won't take over the whole dom or anything - just that one component
  2. how do you share state between components or even pages? Answer nanostores, it's compatible with pretty much every library like React, Svelete, Vue etc... It's also very easy and it has decent docs too