Skip to content

Commit

Permalink
Remove duplication (#685)
Browse files Browse the repository at this point in the history
  • Loading branch information
daalfox authored Apr 16, 2024
1 parent e2127a3 commit 25f5a7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/concepts/context.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Context provides a way to pass data through the component tree without having to
When you have a large [component tree](/concepts/components/basics#component-trees) that requires state to be shared, context can be used.
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.

If you only want to avoid passing some props through a few levels levels, component composition is often a simpler solution than context.
If you only want to avoid passing some props through a few levels, component composition is often a simpler solution than context.

[Signals](/concepts/signals) are often a simplest solution since they can be imported directly into the components that need them.

Expand Down

0 comments on commit 25f5a7c

Please sign in to comment.