# 进场和离场 - order: 1 同时支持进场和离场动画。 --- ````jsx import { QueueAnim, Button } from 'antd'; const Test = React.createClass({ getInitialState() { return { show: true }; }, onClick() { this.setState({ show: !this.state.show }); }, render() { return (

{this.state.show ? [
,
] : null}
); } }); ReactDOM.render(, mountNode); ````