developit / htm

Hyperscript Tagged Markup: JSX alternative using standard tagged templates, with compiler support.
Apache License 2.0
8.7k stars 170 forks source link

Component end-tags ("<//>") need link / explanation #176

Closed broofa closed 1 year ago

broofa commented 4 years ago

The <//> notation mentioned in the README for closing an element is unusual and not well-known (right?) Is this a standard convention? If so, can you add a link to the standard in question so readers can decide if it's a convention worth adopting. If not - if this is a contrivance invented for this module - then it would be worth mentioning that so readers know that using this construct may break if/when they migrate to other JSX/React implementations.

Thanks!

dy commented 4 years ago

Any notation for closing element can be used, as far as it starts with </, eg. </>. That particular notation <//> is HTM@1 legacy.

broofa commented 4 years ago

HTM@1 legacy

Are you referring to this module, htm version 1 (as opposed to, e.g., the XHTML spec)? So... not a convention anyone is using outside of this module? If so it would be good to note that in the README.

developit commented 4 years ago

@broofa htm version 1. I believe the readme mentions this: https://github.com/developit/htm#improvements-over-jsx

broofa commented 1 year ago

[Closing out issues I authored that appear to be stagnant.]