parse-nested-components
When passed a Higher Order Component, parse-nested-components
will apply heuristics to
determine nested components.
npm install parse-nested-components
example
; const Component = <div ...props />;const ParentComponent = <Component ...props />; ;// [// ParentComponent,// Component,// ]