diff --git a/README.md b/README.md index 89e08a2..f5ec652 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,16 @@ Import directly and will auto fill the patch on React 19: import '@ant-design/v5-patch-for-react-19'; ``` +For next layout.tsx +```js +import Fix from '@ant-design/v5-patch-for-react-19' +export default function(props:propsWithChildren){ + return + + {children} + +} +``` ## Compatibility | [IE / Edge](http://godban.github.io/browsers-support-badges/)
IE / Edge | [Firefox](http://godban.github.io/browsers-support-badges/)
Firefox | [Chrome](http://godban.github.io/browsers-support-badges/)
Chrome | [Safari](http://godban.github.io/browsers-support-badges/)
Safari | [Electron](http://godban.github.io/browsers-support-badges/)
Electron | diff --git a/src/index.tsx b/src/index.tsx index 263cdca..45d2e2f 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -21,3 +21,9 @@ unstableSetRender((node, container: ContainerType) => { }, 0); }); }); + + +// Fix the warning for next-15 : antd v5 support React is 16 ~ 18. see https://u.ant.design/v5-for-19 for compatible. +export default function Fix(){ + return null +} \ No newline at end of file