Skip to content

Commit cd2e0ca

Browse files
committed
- Docs: Notes on render usage and duplicates
1 parent 6116756 commit cd2e0ca

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

example/index.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@
1414

1515
createApp({
1616
render () {
17+
// Per devs in Vue Discord, seems not possible to use strings with
18+
// component elements like `<AlertComponent>` (whether within
19+
// `template`, `render`, or `setup`), but this `createElement`
20+
// syntax (see https://vuejs.org/v2/guide/render-function.html#createElement-Arguments )
21+
// is at least HTML-like and decent enough for rapid prototyping
22+
// These docs also seems to indicate that duplicates are not
23+
// allowed, suggesting use of factory functions instead, but
24+
// not seeming to get errors in Vue 3 here if using multiple instances
25+
// at least for the progress indicator
1726
return h('div', [
1827
'Test:',
1928
h(ProgressIndicatorComponent),

0 commit comments

Comments
 (0)