You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[**react-dom.development.js**](https://unpkg.com/react-dom@17/umd/react-dom.development.js) 讓 React render HTML element 到 [DOM](https://developer.mozilla.org/docs/Web/API/Document_Object_Model)。
-[**react-dom.development.js**](https://unpkg.com/react-dom@18/umd/react-dom.development.js) 讓 React render HTML element 到 [DOM](https://developer.mozilla.org/docs/Web/API/Document_Object_Model)。
Copy file name to clipboardExpand all lines: beta/src/pages/learn/choosing-the-state-structure.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -2019,7 +2019,7 @@ export default function App() {
2019
2019
2020
2020
### Fix a broken packing list {/*fix-a-broken-packing-list*/}
2021
2021
2022
-
This packing list has a footer that shows how many items are packed, and how many items there are overall. It seems to work at first, but it is buggy. For example, if you mark a place as completed and then delete it, the counter will not be updated correctly. Fix the counter so that it's always correct.
2022
+
This packing list has a footer that shows how many items are packed, and how many items there are overall. It seems to work at first, but it is buggy. For example, if you mark an item as packed and then delete it, the counter will not be updated correctly. Fix the counter so that it's always correct.
Copy file name to clipboardExpand all lines: beta/src/pages/learn/sharing-state-between-components.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -166,7 +166,7 @@ Lifting state up often changes the nature of what you're storing as state.
166
166
167
167
<imgalt="The parent component passes the state setting function to both child components."src="/images/docs/sketches/s_passing-functions-down.png" />
168
168
169
-
In this case, only one panel should be active at a time. This means that the `Accordion` common parent component needs to keep track of *which* panel is the active one. Instead of a `boolean` value, it could use an number as the index of the active `Panel` for the state variable:
169
+
In this case, only one panel should be active at a time. This means that the `Accordion` common parent component needs to keep track of *which* panel is the active one. Instead of a `boolean` value, it could use a number as the index of the active `Panel` for the state variable:
0 commit comments