diff --git a/client/src/App.js b/client/src/App.js index a9099a1..75ac588 100644 --- a/client/src/App.js +++ b/client/src/App.js @@ -1,7 +1,18 @@ import React from 'react'; import './style/style.css'; +// import * as api from './api'; +// un-comment this ^ ^ ^ to import api endpoints function App() { + // React.useEffect(() => { + // api + // .getSomething() // replace this with your endpoint + // .then((response) => console.log(`✅ ${response.status} ${response.statusText}`, response.data)) + // .catch((error) => console.log(`❌ ${error}`)); + // }); + // + // example ^ ^ ^ using the api endpoint + return