diff --git a/packages/babel-plugin-jsx/README-zh_CN.md b/packages/babel-plugin-jsx/README-zh_CN.md index 47db915..db4209c 100644 --- a/packages/babel-plugin-jsx/README-zh_CN.md +++ b/packages/babel-plugin-jsx/README-zh_CN.md @@ -213,6 +213,23 @@ const App = { return () => ; } }; + +// or +const App = { + setup() { + return () => ( + <> + + { + default: () =>
A
, + foo: () => B + } +
+ {() => 'foo'} + + ); + } +} ``` ### 在 TypeSript 中使用 diff --git a/packages/babel-plugin-jsx/README.md b/packages/babel-plugin-jsx/README.md index 74e155c..2c1cd13 100644 --- a/packages/babel-plugin-jsx/README.md +++ b/packages/babel-plugin-jsx/README.md @@ -213,6 +213,23 @@ const App = { return () => ; } }; + +// or +const App = { + setup() { + return () => ( + <> + + { + default: () =>
A
, + foo: () => B + } +
+ {() => 'foo'} + + ); + } +} ``` ### In TypeScript