React table data not leading

I can not load data to a react table. Any help will be appreciated.Thanks


You have two getMovies , the one on line 2, and the one on line 5. You are using the line 5 getMovies , which appears to have been initialized with an empty movie list. What if you rename the line 2 getMovies to something like getMoviesService and then on line 5 do something like

const [getMovies, setGetMovies] = useState(getMoviesService());

Does that help?