diff --git a/packages/components/scripts/post-build/react.js b/packages/components/scripts/post-build/react.js index 61d445e65b0..70581232731 100644 --- a/packages/components/scripts/post-build/react.js +++ b/packages/components/scripts/post-build/react.js @@ -70,6 +70,7 @@ module.exports = (tmp) => { from: '>(null);', to: '>(component);' }, + { from: 'useRef<', to: 'component || useRef<' }, { from: '={true}', to: ''