Conditionally showing "delete" link in index live views

I find it a bit funny that we used to have a bunch of perl and Java libraries to represent document structure as if it were code. We had wrapper functions (or methods, in Java) to represent HTML tags, all so that the programmer could feel comfortable. Now we want to do the opposite and make code seem as if it were markup.

I’m hoping that someday some very wise person comes up with the revolutionary concept of letting code look like code and document structure like document structure. Not holding my breath, however.

That’s not the main reason for this dance. If you write the JSX as real code it will be verbose and funky due to the need to be reactive. If you only need to describe the html or xml structure in code and can give up reactivity, then it is still easy to do with fairly concise code.