move the axios call into an /api directory code example Example: axios react $ npm install react-axios