Re:Vue.js vs. React
by chj on Saturday August 19, 2017 @12:08PM
(#15054104)
You can make it cleaner:
[ Parent
| on HN ]
Vue allows you to use Pug syntax in your templates, so this can be even simpler:
button(:disabled='isButtonDisabled') Button
div(:id='`list-${id}`")
form(@submit.prevent='onSubmit')
a(@click='doSomething')I'm sorry but that is hideous.
JSX is incredibly simple. Why would you do that to yourself and other devs?
Eloquently put.
And Pug amkes this... cleaner and prettier than JSX? I'm afraid not.
And it's far from being simpler