Well, it shouldn't be a pain. In React you just need to use JS features like map and if to do the same you used to do with <v-for> and <v-if>. The main difference is that by one hand Vue re-invented the wheel throught providing his own style to do ifs and loops, by the other hand React use native features that already exists in JavaScript.
I think this barrier of how to do loops and ifs should be lower because you don't have to learn the features that the framework has created to do this because you already know them in JS.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
For me one of the biggest pain points when moving from Vue to React is the lack of
<v-for>
,<v-if>
and the like.Well, it shouldn't be a pain. In React you just need to use JS features like
map
andif
to do the same you used to do with<v-for>
and<v-if>
. The main difference is that by one hand Vue re-invented the wheel throught providing his own style to do ifs and loops, by the other hand React use native features that already exists in JavaScript.I think this barrier of how to do loops and ifs should be lower because you don't have to learn the features that the framework has created to do this because you already know them in JS.