Comment

Comment by TekMol

My feeling is that most people who use Vue or React only need a template engine. Typical use case: You have an array of objects and a template how each object should look like.

So you do...

    <div id=users>
     <a v-for="user in users" :href="'user/'+user.id">
      {{ user.name }}
     </a>
    </div>

    <script>
     let userList = new Vue({
      el  : '#users',
      data: { users: users }
     })
    </script>
...to make Vue render the list of objects.

This is the only thing I ever use these frameworks for. Everything else I think I can implement in a better, leaner way myself. So I wonder if I should switch to a template engine instead.

What is the next most basic/common usecase for Vue?

parent TekMol 8 years ago

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton