DEV Community

Discussion on: Comparing React and Vue - part 1

Collapse
ctrlshiftbryan profile image
ctrlshiftbryan

Using .map is the equivalent. It’s because of JSX. You are basically sticking HTML tags inside JavaScript with React. In Vue you are inside an HTML template so you have a special v-for attribute. In JSX you don’t need anything special because you have the full power of JS.

Collapse
simonhlee97 profile image
Simon Lee Author

Vue's directives were inspired by AngularJS's "ng-*" directives.