I don't get why I keep receiving an error like this:
Uncaught (in promise) SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
import React, {
useEffect
} from 'react';
import Tmdb from './Tmdb';
export default () => {
useEffect(() => {
const loadAll = async () => {
// Pegar a Lista Total
let list = await Tmdb.getHomeList();
console.log(list);
}
loadAll();
}, []);
return (
<div>
Hello World!
</div>
);
}
Via Active questions tagged javascript - Stack Overflow https://ift.tt/x9p2GDY
Comments
Post a Comment