3 ms·
You can make it cleaner:
<button :disabled="isButtonDisabled">Button</button>
<div :id="'list-' + id"></div>
<form @submit.prevent="onSubmit"></form>
You can make it cleaner:
<button :disabled="isButtonDisabled">Button</button>
<div :id="'list-' + id"></div>
<form @submit.prevent="onSubmit"></form>
<a @click="doSomething"></a>
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?
And Pug amkes this... cleaner and prettier than JSX? I'm afraid not.
And it's far from being simpler
Doesn't make it either clean or pretty