# 配置进出场的样式 - order: 2 配置进出场动画样式。 --- ````jsx var QueueAnim = antd.QueueAnim; var Button = antd.Button; var Test = React.createClass({ getInitialState() { return { show: true, } }, onClick() { this.setState({ show: !this.state.show, }) }, render() { return (
{this.state.show ? [
,
]: null}
); } }); ReactDOM.render( , document.getElementById('components-queue-anim-demo-enter-leave')); ````