Skip to content

Commit a0a60ee

Browse files
committed
docs: update README
1 parent 5b6323f commit a0a60ee

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

packages/babel-plugin-jsx/README-zh_CN.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,23 @@ const App = {
213213
return () => <A v-slots={slots} />;
214214
}
215215
};
216+
217+
// or
218+
const App = {
219+
setup() {
220+
return () => (
221+
<>
222+
<A>
223+
{
224+
default: () => <div>A</div>,
225+
foo: () => <span>B</span>
226+
}
227+
</A>
228+
<B>{() => 'foo'}</B>
229+
</>
230+
);
231+
}
232+
}
216233
```
217234
218235
### 在 TypeSript 中使用

packages/babel-plugin-jsx/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,23 @@ const App = {
213213
return () => <A v-slots={slots} />;
214214
}
215215
};
216+
217+
// or
218+
const App = {
219+
setup() {
220+
return () => (
221+
<>
222+
<A>
223+
{
224+
default: () => <div>A</div>,
225+
foo: () => <span>B</span>
226+
}
227+
</A>
228+
<B>{() => 'foo'}</B>
229+
</>
230+
);
231+
}
232+
}
216233
```
217234
218235
### In TypeScript

0 commit comments

Comments
 (0)