|
|
|
|
|
by SahAssar
2290 days ago
|
|
I dislike Vue and similar templates because the result is not used as HTML, it's used as JS to generate HTML, but tries to imitate HTML. I feel the same way about JSX. IMO a just a simple function/array based templates work better like this that I have used recently: div({class: 'test'}, b({}, 'Hello world!')) Or for the array syntax: ['div', {class: 'test'}, ['b', {}, 'Hello world!']] |
|