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.
Sorry for the late response but yea Astro can do interactivity pretty seamless
2 things to note
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
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
View all comments
Show parent 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.