mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DOCS: Add additional help for how to use 'h' helper with virtual DOM
This commit is contained in:
parent
88f38f34cc
commit
f595ba336a
@ -19,6 +19,8 @@ class DecoratorHelper {
|
|||||||
* // renders `<div class='some-class'><p>paragraph</p></div>`
|
* // renders `<div class='some-class'><p>paragraph</p></div>`
|
||||||
* return helper.h('div.some-class', helper.h('p', 'paragraph'));
|
* return helper.h('div.some-class', helper.h('p', 'paragraph'));
|
||||||
* ```
|
* ```
|
||||||
|
* Check out https://github.com/Matt-Esch/virtual-dom/blob/master/virtual-hyperscript/README.md
|
||||||
|
* for more details on how to construct markup with h.
|
||||||
**/
|
**/
|
||||||
// h() is attached via `prototype` below
|
// h() is attached via `prototype` below
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user