asyncfunctionhandleSubmit(event:FormEvent<HTMLFormElement>){event.preventDefault();if(state.status==='loading'){return;}dispatch({type:ActionType.sentData});try{awaitaxios.request({// some code});dispatch({type:ActionType.success});}catch(error){dispatch({type:ActionType.error});}}
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Hi all what about this? am I missing something?