Re:Our long term plan to make GitLab as fast as possible wit...
by sb8244 on Tuesday February 07, 2017 @09:45AM
(#13589652)
I don't understand this. You could build up the template using jsx exactly like you could otherwise. For instance, I could put that in a variable and then use it in another template via {}
[ Parent
| on HN ]
Re:Our long term plan to make GitLab as fast as possible wit...
by justinlaster on Tuesday February 07, 2017 @09:48AM
(#13589671)
You could, but it's unintuitive (in my opinion) to do so -- which was the parent's comment larger point. You're not doing anything different, and to an extent the latter is actually lying about what's going on (you're not writing HTML). I also lose a certain level of tooling by doing it the JSX way. Why try to mask what you're doing? Why make it harder for your tools to help you out?