How to Get value of select onChange in Functional Component in React

Im Using ant design pro with react to create form, but i cannot save the value of select using hooks. i Shows a errorn error const ExistingGroup = (props) => { const [group,setGroup] = useState([]); const saveGroup = (event) => { setGroup(event.target.value); } return ( <PageContainer header={{ title: ” }} ghost> <Card bordered={false} style={{ width:… Read More How to Get value of select onChange in Functional Component in React

How to stop React Ant Design Upload component from posting files automatically

I have this simple file upload button that I got from antd ant design documentation: <Upload> <Button icon={<UploadOutlined />} className="upload-btn" > Upload a file </Button> </Upload> Every time I upload a file I get this error in the console log: I don’t want it to make a post request when I upload the file, I… Read More How to stop React Ant Design Upload component from posting files automatically