Antd removes select from antD by default

import React from 'react'; import AddModal from './addmodal'; class Parent extends React.Component { state = { visible: false }; render () { const { visible } = this.state; Return (<div className='boxBotm'> {{/*visible is visible every time it closes, */} Visible && <AddModal/>} </div>); } } export default Parent;Copy the code

I was amazed at how simple it was.

Finally, THANKS to my good friend Bai Xuexue for her valuable advice.