Reading-Notes

Reading

Choosing the State Structure

Summarize the five principles for structuring state.

Passing State Deeply with Context

What problem do Contexts aim to solve?

Context lets the parent component make some information available to any component in the tree below it—no matter how deep—without passing it explicitly through props. https://react.dev/learn/passing-data-deeply-with-context

What is one technique to try before useContext?

Passing props or passing JSX as ‘children’

What hook complements useContext for complex applications?

useState

Bookmark and Review

Keep these pages handy - they answer questions that show up regularly for this lab.

Sharing State Between Components Preserving and Restting State