DEV Community

Discussion on: 5 things I struggled with when learning React with a Vue background

Collapse
 
marcel099 profile image
Marcelo Lupatini

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.