New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fetching Google API Data #3
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Left some minor suggestions.
let [apiData, setApiData] = useState(null); | ||
|
||
const getApiData = async () => { | ||
setApiData(await getReviews()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How will you handle API errors here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will do in next PR. Thank you for pointing out.
Co-authored-by: Chris Jaure <chrisjaure@gmail.com>
Co-authored-by: Chris Jaure <chrisjaure@gmail.com>
Hi Chris,
I have fetched Google API data from backend and passed the data to frontend. Next I am going to work on
itemModel.js
file to create an endpoint to get all item in one API call and also planning to work on React Router.It looks like this PR has merge conflict, I am going to work it later
Could you please review
client/src/component/customer/ReviewPage.js
andserver/api/googleApi.js
files.Contact page and header page is just a placeholder.
Thank you