HNHacker News
TopNewBestAskShowJobs

ping-monkey

6 karma · joined July 19, 2023

submissionscomments
ping-monkey··on VanJS – A no-JSX framework based on vanilla JavaScript
There is some plug-in that adds JSX support though.
ping-monkey··on VanJS – A no-JSX framework based on vanilla JavaScript
If you like JSX, good for you. But tbh it's neither necessary nor the best solution...
ping-monkey··on VanJS – A no-JSX framework based on vanilla JavaScript
FWIW, for HTML template:

1. How easy is it to support loops? 2. How easy is it to compose (defining small components that can be used in larger components)? 3. How easy is it to make the UI reactive to client-side state changes?

> because it's not better than the alternatives

What is the alternative you're refering?

ping-monkey··on VanJS – A no-JSX framework based on vanilla JavaScript
tbh, you don't need JSX to know where things begin and end (if this is something really important for you):

li(a({href: "https://vanjs.org/"}, "VanJS")/*a*/)/*li*/

ping-monkey··on VanJS – A no-JSX framework based on vanilla JavaScript
VanJS is a lot faster than React: https://vanjs.org/#performance. UI re-rendering in VanJS is kept at the local level as much as possible, which can be achieved without even the need of vdom
ping-monkey··on VanJS – A no-JSX framework based on vanilla JavaScript
Try to replicate a sample app made by VanJS with Vanilla JS and check the difference
ping-monkey··on ArrowJs: Reactivity Without the Framework
https://vanjs.org is another attempt for the goal