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
{{ message }}
This repository has been archived by the owner on Apr 27, 2022. It is now read-only.
Xavier Via edited this page Aug 13, 2016
·
1 revision
The Checklist component, for example, exposes two React Components:
The container
The item
The container is the Checklist in itself, while the item is a component to be used inside the Checklist. The Checklist is considered the Main component, while the item is exposed simply as Item. For example:
This makes it easy for consumers interested in only part of a component to do tree shaking for a small build size and gives a simple convention for how to expose components with complex structures.