In VanilaJs we take data from form during onSubmit, using FormData make request. In ReactJ documentation we see that before submit it's recommended to setState data which introduced user.After onClick on submit button we take this data from the state and make request. So is it best way to work with forms using React?