Skip to content

Commit

Permalink
docs: Typo fix in descendent style recipe (#843)
Browse files Browse the repository at this point in the history
  • Loading branch information
bgashler1 authored Jan 11, 2025
1 parent 184a3d4 commit 2b7123f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/docs/docs/learn/06-recipes/01-context-driven-styles.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ StyleX lets you apply styles conditionally. Any condition can be used to do so,
The React Context API (and other similar APIs) can be used to avoid prop-drilling
and provide conditions that child component can read and apply styles conditionally.

Context can help reduce prop-drilling by sharing state across components. This can often
an alternative to using descendent selectors where the same results can be achieved
Context can help reduce prop-drilling by sharing state across components. This can often be
an alternative to using descendent selectors, as the same results can be achieved
*without* "styling at a distance".

For example, you can manage the open or closed state of a sidebar using React Context
Expand Down

0 comments on commit 2b7123f

Please sign in to comment.