easier said than done. there is only so much you can do with vanilla JS and almost all AI models only know how to work with popular frameworks. so getting them to build custom vanilla JS is fighting the current
Discussion
There's a lot you can do with vanilla Js. Keeping it organized is the hard part. But that's why I use go and just use js for web stuff. This presents it's own challenges of course 😂
The main reason I cant use vanilla JS is that having the rendered HTML written and defined in the same file as the components logic is so much better than the vanilla (jquery style) of working with the DOM. because your writing logic in one file for the markdown that's defined in another...
There are decent frameworks like https://lit.dev but it still doesn't provide all the benefits you get from JSX or svelte