docs: Fix typo in jsx docs (#1959)
This commit is contained in:
parent
c35852a368
commit
b26e67d1e9
1 changed files with 1 additions and 1 deletions
|
|
@ -191,7 +191,7 @@ JSX is useful for teams where HTML is primarily written by someone without Javas
|
|||
Hyperscript is the compiled representation of JSX. It's designed to be readable and can also be used as-is, instead of JSX (as is done in most of the documentation). Hyperscript tends to be terser than JSX for a couple of reasons:
|
||||
|
||||
- it does not require repeating the tag name in closing tags (e.g. `m("div")` vs `<div></div>`)
|
||||
- static attributes can be written using CSS selector syntax (i.e. `m("a.button")` vs `<div class="button"></div>`
|
||||
- static attributes can be written using CSS selector syntax (i.e. `m("a.button")` vs `<a class="button"></a>`)
|
||||
|
||||
In addition, since hyperscript is plain Javascript, it's often more natural to indent than JSX:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue