drex44 / good-food-guide

A guide to know which foods are good when you have certain disease! [Built with React/NextJs]
https://good-food-guide.now.sh
MIT License
48 stars 38 forks source link

FrontEnd: more informative detailedFoodDetails.js #5 #19

Closed mread1208 closed 6 years ago

mread1208 commented 6 years ago

Querying the dataset directly on the details page by passing an id from the Card. The allows it to get the right data whenever you directly navigate to the page, though it probably can be done in a more intuitive way if we converted the details page to be it's own react component.

drex44 commented 6 years ago

@mread1208 The idea is to make the it's own react component so if somebody directly comes onto it! it renders appropriate data. also it will be good for SEO. I was thinking about using keys such as "viral-fever" instead of int ids. that way it will look good if it's in the query.

I will comment the issue number here if you want to work on this!