I'm learning #Vue. And as a React developer I just cannot get used to this syntax. Putting a function expression into a string feels so damn wrong to me. #WebDev
@preya 1. You rather put HTML structure in JavaScript.😜
2. This is even valid inline JS in Vanilla HTML
3. Usually you would use named method as a callback instead of inline JS
@denniskoch Yeah, fair point. This is not Vue-specific. Let me rephrase my point: JSX is wonderful. I will die on this hill.

@preya @denniskoch It's all what you're used to. I like html/css so I want that to be as vanilla as possible.

In your example I would definitely make a function so that the only clutter is one function name.

Vue.js

Vue.js - The Progressive JavaScript Framework