mma-api
mma-api copied to clipboard
TypeError: querystring.escape is not a function
Hey,
I just tried for the first time using your api, but I could not do it correctly. This is my code in React:
import React from "react";
import mma from "mma";
function App() {
mma.fighter("Jon Jones", (data: any) => {
console.log(data);
});
return <div className="App">ss</div>;
}
export default App;
When running the app I get the following error: TypeError: querystring.escape is not a function
Keep in mind, I am using typescript.