Skip to content

Commit 3d70682

Browse files
committed
#9363 corrected the fn cmp definitions (missing config object)
1 parent 5ce949e commit 3d70682

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

learn/gettingstarted/DescribingTheUI.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,9 @@ Here is a simple view that displays a single button. The `createVdom` function r
2222
import {defineComponent} from '../functional/_export.mjs';
2323

2424
const MainView = defineComponent({
25-
className: 'GS.describing.functional.MainView',
25+
config: {
26+
className: 'GS.describing.functional.MainView'
27+
},
2628

2729
createVdom(config) {
2830
return {
@@ -82,7 +84,9 @@ import {defineComponent} from '../functional/_export.mjs';
8284
import Calendar from '../calendar/Component.mjs'; // A complex, class-based component
8385

8486
const MainView = defineComponent({
85-
className: 'GS.describing.interop.MainView1',
87+
config: {
88+
className: 'GS.describing.interop.MainView1'
89+
},
8690

8791
createVdom(config) {
8892
return {
@@ -114,7 +118,9 @@ import Container from '../container/Base.mjs';
114118

115119
// 1. Define a simple functional component
116120
const MyFunctionalButton = defineComponent({
117-
className: 'GS.describing.interop.FuncButton',
121+
config: {
122+
className: 'GS.describing.interop.FuncButton'
123+
},
118124
createVdom(config) {
119125
return {
120126
ntype: 'button',

0 commit comments

Comments
 (0)