VanJS (Vanilla JavaScript): smallest reactive UI framework
31–40 of 214 posts
Re: VanJS (Vanilla JavaScript): smallest reactive UI framework
#32Earlier quoted context omitted.
Yes, please be that guy. Or I'll do it. Vanilla Javascript refers indeed to "javascript without a framework". So creating a framework and calling it "vanilla javascript" is... wrong?
It’s 93 lines, less than most CSS resets. Small enough to copy paste to the top of your index.html in a script tag. You can use it without NPM, webpack, a special compiler pass, or a template language. Seems pretty vanilla compared to the full fat, popular alternatives.
It's still not part of the common browser API, so yes it's easy to add, but no, it's not vanilla.
Re: VanJS (Vanilla JavaScript): smallest reactive UI framework
#33Re: VanJS (Vanilla JavaScript): smallest reactive UI framework
#34I really don't want to be that guy, but... Vanilla JavaScript already exists as a popular term for JavaScript without any framework. No jQuery, no React - just JavaScript. Calling a library VanJS (as short for "Vanilla JavaScript") is just going to cause confusion. The repo's own description uses the phrase vanilla JavaScript in this way, and even mixes both meanings within a single sentence. If the author likes the…
That is why the name is only half vanilla: van ;-)
Re: VanJS (Vanilla JavaScript): smallest reactive UI framework
#35I use the same Html-in-JS syntax for my own project and it works really well. The good folks at solenya have written a converter: https://www.solenya.org/convert
Re: VanJS (Vanilla JavaScript): smallest reactive UI framework
#36I really don't want to be that guy, but... Vanilla JavaScript already exists as a popular term for JavaScript without any framework. No jQuery, no React - just JavaScript. Calling a library VanJS (as short for "Vanilla JavaScript") is just going to cause confusion. The repo's own description uses the phrase vanilla JavaScript in this way, and even mixes both meanings within a single sentence. If the author likes the…
Re: VanJS (Vanilla JavaScript): smallest reactive UI framework
#37Re: VanJS (Vanilla JavaScript): smallest reactive UI framework
#38Some of the binding API is a bit weird, like that object with `deps` (State-derived properties). Maybe providing a function for this would be more ergonomic.
Re: VanJS (Vanilla JavaScript): smallest reactive UI framework
#39I really don't want to be that guy, but... Vanilla JavaScript already exists as a popular term for JavaScript without any framework. No jQuery, no React - just JavaScript. Calling a library VanJS (as short for "Vanilla JavaScript") is just going to cause confusion. The repo's own description uses the phrase vanilla JavaScript in this way, and even mixes both meanings within a single sentence. If the author likes the…
So now we have a framework that doesn't want to be a framework? They might call it "VoidJS" instead, as in void = vacuum = so lightweight it's almost as if there's nothing there?
Re: VanJS (Vanilla JavaScript): smallest reactive UI framework
#40Earlier quoted context omitted.
It’s 93 lines, less than most CSS resets. Small enough to copy paste to the top of your index.html in a script tag. You can use it without NPM, webpack, a special compiler pass, or a template language. Seems pretty vanilla compared to the full fat, popular alternatives.
You're mixing metaphors there! It might be lightweight but it's still a flavour. It's still not part of the common browser API, so yes it's easy to add, but no, it's not vanilla.
> it's not vanilla.
Hate to interrupt, but vanilla is a flavor. And it's a pretty good one, dammit!