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
Copy file name to clipboardExpand all lines: src/routes/concepts/context.mdx
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ Context provides a way to pass data through the component tree without having to
10
10
When you have a large [component tree](/concepts/components/basics#component-trees) that requires state to be shared, context can be used.
11
11
Context can be employed to avoid [prop drilling](/concepts/components/props#prop-drilling), which is the practice of passing props through intermediate elements without using them directly.
12
12
13
-
If you only want to avoid passing some props through a few levels levels, component composition is often a simpler solution than context.
13
+
If you only want to avoid passing some props through a few levels, component composition is often a simpler solution than context.
14
14
15
15
[Signals](/concepts/signals) are often a simplest solution since they can be imported directly into the components that need them.
0 commit comments