Skip to content

Commit 6f983c3

Browse files
committed
Remove "When to use which"
Was just rephrasing what we already had and gave wrong impression
1 parent 538b3cf commit 6f983c3

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/content/reference/react/captureOwnerStack.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -130,12 +130,6 @@ Neither `App` nor the DOM components (e.g. `fieldset`) are considered Owners in
130130

131131
Neither `Navigation` nor `legend` are in the stack at all since it's only a sibling to a node containing `<SubComponent />`.
132132

133-
### When to use which {/*when-to-use-which*/}
134-
135-
The Component Stack is useful for contextual information e.g. [`React.Suspense`](/reference/react/Suspense), [React Context](https://react.dev/reference/react/createContext), or [`<form>`](/reference/react-dom/components/form).
136-
137-
The Owner Stack is useful for tracing the flow of props. Owner stacks are equivalent to [call stacks](https://developer.mozilla.org/en-US/docs/Glossary/Call_stack) if all JSX would be converted to direct function calls e.g. `Component({label: "disabled"})` instead of `<Component label="disabled" />`.
138-
139133
## Usage {/*usage*/}
140134

141135
### Expanding error stacks {/*expanding-error-stacks*/}

0 commit comments

Comments
 (0)