--- order: 7 title: zh-CN: 平滑地卸载 en-US: Smoothly Unmount --- ## zh-CN 平滑、自然的卸载提示 ## en-US Smoothly and unaffectedly unmount Alert. ````jsx import { Alert } from 'antd'; class App extends React.Component { state = { visiable: true, } handleClose = () => { this.setState({ visiable: false }); } render() { return (
{ this.state.visiable ? ( ) : null }

placeholder text here

); } } ReactDOM.render( , mountNode); ````