Understanding Compound Components in React

added by JavaScript Kicks
12/31/2019 9:07:03 AM

290 Views

Learn how and when to use React compound components So, you have created a component and you are proud of it, but then the designs have changed a bit, and you are forced to pass a prop like leftAlignment={false} or isBottom to adjust your component.


0 comments