You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using React 18, when use Text component with fixed width, it will log an annoying error: Warning: ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot
Expected Behavior
No error
Steps To Reproduce
I think the source code explains everything, check typography/util.es,
it use ReactDOM.render(/*#__PURE__*/React.createElement(React.Fragment, null), ellipsisContainer); to calculate if width are exceed limit, I think it could be done without using ReactDOM.render here.
ReproducibleCode
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Which Component
Typograhy.Text
Semi Version
2.73.0
Current Behavior
I'm using React 18, when use Text component with fixed width, it will log an annoying error: Warning: ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot
Expected Behavior
No error
Steps To Reproduce
I think the source code explains everything, check typography/util.es,
it use
ReactDOM.render(/*#__PURE__*/React.createElement(React.Fragment, null), ellipsisContainer);
to calculate if width are exceed limit, I think it could be done without using ReactDOM.render here.ReproducibleCode
Environment
Anything else?
No response
The text was updated successfully, but these errors were encountered: