chingu-voyages / v43-tier2-team-21

Skill Tracker | Voyage-43 | https://chingu.io/ | Twitter: https://twitter.com/ChinguCollabs
https://skill-tracker-b900e.firebaseapp.com/landingpage
1 stars 0 forks source link

Setup use context #49

Closed MattRueter closed 1 year ago

MattRueter commented 1 year ago

@tylerthietje Look at the App.js and SkillCardContainer to see how they make use of useContext hook. in App.js you'll want to study the following...

UserContext
const [data]
UserContext.Provider

in SkillCardContainer.js take a look at...

const { currentUser, skills }

I've written some console.log() statements to see how to consume those variables in SkillCardContainer. Feel free to give a go at deleting the fakeData variable and making use of the 'destructured' variables from useContext(UserContext) to create the individual skillCards.