React JavaScript Axios has some mistake in my code, how to optimize this data for use
Here is my code which is causing the problems. I have Axios and I don't know how to use it effectively. import axios from "axios"; const options = { headers: { 'content-type': 'application/json', ContentType: 'text/json; charset=utf-8', 'X-RapidAPI-Key': 'REACT_APP_KEY', 'X-RapidAPI-Host': 'rdrunnerxx-trackservice.p.rapidapi.com'…