DEV Community

Discussion on: The best framework in 2021

Collapse
 
bjakyt profile image
Jaakko

For me it's React, but I think it's just a matter of preference.

From my point of view, it is more logical to write JSX like:

return (
  <div>
    {listItems.map((item) => <p>{item}</p>)}
  </div>
)
Enter fullscreen mode Exit fullscreen mode

and it has felt so intuitive right from the beginning, compared to the more HTML -ish way of Vue:

<div>
  <p v-for="item in listItems">{{ student }}</p>
</div>
Enter fullscreen mode Exit fullscreen mode
Collapse
 
merichard123 profile image
Richard • Edited

If you really wanted to, Vue does support JSX 😁 you just need to set the lang attribute