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
I want to write a cheatsheet exaplaining a pattern where we can restrict a component only to be used as a descendant of another compnent.
Advanced cheatsheet
What's your issue or idea?
There is a common pattern used in libraries such as RadixUI where we can use Context to restrict useage of a child only as a descendant of another component.
I want to write up a cheatsheet for a minimal implementation of this pattern.
Write here
The text was updated successfully, but these errors were encountered:
What cheatsheet is this about? (if applicable)
I want to write a cheatsheet exaplaining a pattern where we can restrict a component only to be used as a descendant of another compnent.
Advanced cheatsheet
What's your issue or idea?
There is a common pattern used in libraries such as RadixUI where we can use Context to restrict useage of a child only as a descendant of another component.
I want to write up a cheatsheet for a minimal implementation of this pattern.
Write here
The text was updated successfully, but these errors were encountered: