Skip to content

Commit

Permalink
fix: issue with react forward ref (#2168)
Browse files Browse the repository at this point in the history
* fix: issue with react forward ref

* Update packages/components/scripts/post-build/react.js

Co-authored-by: Maximilian Franzke <[email protected]>

---------

Co-authored-by: Maximilian Franzke <[email protected]>
  • Loading branch information
nmerget and mfranzke authored Feb 4, 2024
1 parent fd56b68 commit a2974b7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/components/scripts/post-build/react.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ module.exports = (tmp) => {
from: '>(null);',
to: '>(component);'
},
{ from: 'useRef<', to: 'component || useRef<' },
{
from: '={true}',
to: ''
Expand Down

0 comments on commit a2974b7

Please sign in to comment.