News for hackers. Stuff that matters.
Re:Vue.js vs. React by chj on Saturday August 19, 2017 @12:08PM (#15054104)
You can make it cleaner:

   <button :disabled="isButtonDisabled">Button</button>
   <div :id="'list-' + id"></div>
   <form @submit.prevent="onSubmit"></form>
   <a @click="doSomething"></a>
Re:Vue.js vs. React by hansede on Saturday August 19, 2017 @12:47PM (#15054310)
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')
Re:Vue.js vs. React by scottmf on Saturday August 19, 2017 @06:45PM (#15056055)
I'm sorry but that is hideous.

JSX is incredibly simple. Why would you do that to yourself and other devs?

Re:Vue.js vs. React by hansede on Saturday August 19, 2017 @08:19PM (#15056333)
Eloquently put.
Re:Vue.js vs. React by dmitriid on Sunday August 20, 2017 @06:16AM (#15057782)
And Pug amkes this... cleaner and prettier than JSX? I'm afraid not.

And it's far from being simpler

Re:Vue.js vs. React by dmitriid on Sunday August 20, 2017 @06:15AM (#15057777)
Doesn't make it either clean or pretty