Recompose: ButtonGroup - When nesting affects Style

Share this video with your friends

Send Tweet

In CSS we use the descendant selector to style elements based on their nesting. Thankfully in React we don't need to consider this most of the time because this nesting of elements happens within the bounds of a single component.

However occasionally the nesting of components affects the styles. In these rare cases we can use context to influence styles yielding a user friendly api to our components.

Zhentian Wan
Zhentian Wan
~ 7 years ago

Like recompose lessons. Waiting for mooooore :D