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
版本:[email protected][email protected]
通过Next引入Semi-ui,运行项目后控制台直接提示
Attempted import error: 'findDOMNode' is not exported from 'react-dom' (imported as 'findDOMNode').
Toast组件使用不了!
Expected Behavior
能正常使用Toast,控制台不报错!
Steps To Reproduce
--
ReproducibleCode
import React from "react";
import { observer } from "mobx-react-lite"
import { useThemeStore } from "@/store/theme";
import { Button, Toast } from '@douyinfe/semi-ui';
function Home() {
const store = useThemeStore();
return (
<React.Fragment>
<Button onClick={() => {
Toast.warning({ content: 'welcome' })
store.updateParams({
theme: store.theme === 'light'? 'dark' : 'light'
})
}} type="warning">Hello Semi</Button>
</React.Fragment>
)
}
export default observer(Home)
Is there an existing issue for this?
Which Component
Toast
Semi Version
2.71.0
Current Behavior
版本:[email protected] [email protected]
通过Next引入Semi-ui,运行项目后控制台直接提示
Attempted import error: 'findDOMNode' is not exported from 'react-dom' (imported as 'findDOMNode').
Toast组件使用不了!
Expected Behavior
能正常使用Toast,控制台不报错!
Steps To Reproduce
--
ReproducibleCode
Environment
Anything else?
--
The text was updated successfully, but these errors were encountered: