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
What is the difference between withRootProvider and withProvider return by createStyledContext?
When should each be used?
Is the summary accurate?
The withRootProvider wraps a component with a context provider that supplies style information derived from the recipe to the nodes descending from the root. The withRootProvider does not apply any styling to the component.
The withProvider creates a styled component that also forwards a ref. In the process it creates a styled component while also providing context to descending nodes.
The text was updated successfully, but these errors were encountered:
What is the difference between
withRootProvider
andwithProvider
return bycreateStyledContext
?Is the summary accurate?
withRootProvider
wraps a component with a context provider that supplies style information derived from the recipe to the nodes descending from the root. ThewithRootProvider
does not apply any styling to the component.withProvider
creates a styled component that also forwards a ref. In the process it creates a styled component while also providing context to descending nodes.The text was updated successfully, but these errors were encountered: