reading-notes

Software Development Reading Notes

View on GitHub

React III

Assets, Metadata, and CSS

context

React context allows us to share data (state) across our components more easily. The following data can be passed:

React context helps us avoid the problem of props drilling.

Props drilling is a term to describe when you pass props down multiple levels to a nested component, through components that don’t need it.

Use React context

useContext hook

makes our components more concise and allows us to create our own custom hooks.