Hacker News new | ask | show | jobs
by veidelis 517 days ago
Here we to with the "minimalistic stringy language" again.

<a :for="src, i in images" class="{ current: i == index }" @click="index = i"></a>

6 comments

React has it's problems, but for me one of the most appealing things is doing away with this magic attribute sprinkling that is a maintenance nightmare and just going all in on JSX.
> <a :for="src, i in images" class="{ current: i == index }" @click="index = i"></a>

Seconded.

I gotta be honest: while I actually am sold on the principles in the rationale, I'm not so crazy about what the implementation looks like.

Look at that standards-based code! Wow!
To be fair that's perfectly clear to me. Reminds me a bit of xslt but not in a bad way
Reminds me of the old angular template syntax.
Sayonara editor integration.