This video is available to students only
Contexts can be Used to Share Functions within an App Too
Context doesn't necessarily need to live at the top level of a component to be useful.
This page is a preview of The newline Guide to Modernizing an Enterprise React App
- Context can be employed at all different levels of a React app, not just the root level
- Checkout API functions take center stage once more
- Create a new CheckoutFunctionContext.js file
- Add the new context to Checkout.js
- Delete the removeItemFromCheckout prop
- Update the CheckoutItem.js file to access the useContext Hook
- Fix <CheckoutItem>'s ESLint errors
Contents