mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-23 12:13:11 +00:00
Docs: Fix typos in thinking-in-react.md (#7179)
* Fix typos in thinking-in-react.md * Update src/content/learn/thinking-in-react.md --------- Co-authored-by: Ricky <rickhanlonii@gmail.com>
This commit is contained in:
@@ -268,8 +268,8 @@ Now let's run through our strategy for them:
|
||||
1. **Identify components that use state:**
|
||||
* `ProductTable` needs to filter the product list based on that state (search text and checkbox value).
|
||||
* `SearchBar` needs to display that state (search text and checkbox value).
|
||||
1. **Find their common parent:** The first parent component both components share is `FilterableProductTable`.
|
||||
2. **Decide where the state lives**: We'll keep the filter text and checked state values in `FilterableProductTable`.
|
||||
2. **Find their common parent:** The first parent component both components share is `FilterableProductTable`.
|
||||
3. **Decide where the state lives**: We'll keep the filter text and checked state values in `FilterableProductTable`.
|
||||
|
||||
So the state values will live in `FilterableProductTable`.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user