I am getting my output in a react app at this.state
but I want to bring this outside and populate div so that I can show it at the frontend. How can I do it?
fetch("https://flask-api-test1.herokuapp.com/predict", {
method: "post",
body: formData,
})
.then((res) => res.json())
.then((result) => {
console.log(state);
})
.catch((err) => {
console.log(err);
});