React compound component with context API
https://medium.com/@bitneko/react-compound-component-with-context-api-4d9c0099874f
React Context API was released together with React 16.3, and it changes a number of ways that we work with React. One of it is Compound Component.
The idea of Compound Component as a React component pattern is not new, and we can see it being use extensively in certain library such as semantic-ui-react. However, compound component itself come with a number of quirks that limit it’s usefulness.
React compound component with context API
Jan 15, 2019, 12:47pm UTC
https://medium.com/@bitneko/react-compound-component-with-context-api-4d9c0099874f
> React Context API was released together with React 16.3, and it changes a number of ways that we work with React. One of it is Compound Component.
> The idea of Compound Component as a React component pattern is not new, and we can see it being use extensively in certain library such as semantic-ui-react. However, compound component itself come with a number of quirks that limit it’s usefulness.