Skip to content

Commit 977a14f

Browse files
committed
init
1 parent 9ce0744 commit 977a14f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

doc/en/essentials/usage/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,13 +185,13 @@ In addition, we can use the predefined property `content` of the function compon
185185

186186
```jsx
187187
function Child({ content }) {
188-
content.id = 'ChildId';
188+
content.msg = 'hello';
189189
return () => <h1>Child</h1>;
190190
}
191191

192192
function App() {
193193
function get() {
194-
console.log(Child.id); // ChildId
194+
console.log(Child.msg); // hello
195195
}
196196

197197
return () => (

doc/zh/essentials/usage/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,13 +185,13 @@ Mettle 内部的渲染系统是基于虚拟 DOM 构建的,虚拟 DOM (Virtual
185185

186186
```jsx
187187
function Child({ content }) {
188-
content.id = 'ChildId';
188+
content.msg = 'hello';
189189
return () => <h1>Child</h1>;
190190
}
191191

192192
function App() {
193193
function get() {
194-
console.log(Child.id); // ChildId
194+
console.log(Child.msg); // hello
195195
}
196196

197197
return () => (

0 commit comments

Comments
 (0)