News for hackers. Stuff that matters.
Re:Why I left React for Vue by sergiotapia on Tuesday December 25, 2018 @10:45PM (#18760359)
>The conditional in react is just pure JS.

Who cares? You still write a JS conditional in the v-if string, right?

Re:Why I left React for Vue by crubier on Wednesday December 26, 2018 @05:59AM (#18761600)
> Who cares?

Me. As a CTO I am not confortable having significant amounts of code embedded in strings inside html attributes. Also we use Flow / Typescript.

React is typesafe and sound. No templates, no strings, just functions. This is the basis of the pyramids of developer's needs.

Re:Why I left React for Vue by sergiotapia on Wednesday December 26, 2018 @11:38AM (#18762987)
> This is the basis of the pyramids of developer's needs.

Apparently not though, thousands of people use Angular, even more people use VueJS now.

Re:Why I left React for Vue by crubier on Wednesday December 26, 2018 @01:00PM (#18763489)
> thousands of people

Animals*. Not people, FTFY.

Joke aside though, I think this is an artifact of old school web development, which was a mess. People didn’t mind these kinds of hacks. But the number of people willing to accept such incongruities is going to go down in the next years as web development has now normalized into more sane practices that are standard in the software development world.

Re:Why I left React for Vue by MattRix on Tuesday December 25, 2018 @10:53PM (#18760391)
That gets messy fast though. You start having to escape strings in your code, and potentially have a trickier time with autocompletion etc.
Re:Why I left React for Vue by kangoo1707 on Tuesday December 25, 2018 @11:03PM (#18760428)
then write a method for it.

Instead of v-if="currentUser && currentUser.id && ..." you can just write v-if="canDoStuff(currentUser)"