←back to thread

174 points tipiirai | 7 comments | | HN request time: 0.361s | source | bottom
1. veidelis ◴[] No.42735834[source]
Here we to with the "minimalistic stringy language" again.

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

replies(6): >>42736027 #>>42737524 #>>42740858 #>>42745364 #>>42747142 #>>42749879 #
2. ediatedia ◴[] No.42736027[source]
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.
3. lelanthran ◴[] No.42737524[source]
> <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.

4. robertoandred ◴[] No.42740858[source]
Look at that standards-based code! Wow!
5. smrtinsert ◴[] No.42745364[source]
To be fair that's perfectly clear to me. Reminds me a bit of xslt but not in a bad way
6. createaccount99 ◴[] No.42747142[source]
Sayonara editor integration.
7. sureglymop ◴[] No.42749879[source]
Reminds me of the old angular template syntax.