xboxman555
RReactiflux
•Created by xboxman555 on 1/26/2023 in #react-forum
React and Fetch Api; Returning reacts index.html File instead of api endpoint?
My Fetch Api with react is returning index.html instead of its data is there something with react I need to change?
```
fetch()
.then((response) => response.json())
.then((data) => console.log(data))
fetch() .then((response) => response.text()) .then((data) => console.log(data))
fetch() .then((response) => response.text()) .then((data) => console.log(data))
31 replies