Challenge: Navigating the Perils and Pitfalls of Context API
Test your understanding of Context API.
We'll cover the following
Task
Using the src/create-context.tsx
as a base, create a currency context (src/currency-context.tsx
) used for changing the currency based on user preferences. Once created, it will be available in every component by importing it and then using this code:
Get hands-on with 1200+ tech skills courses.