parse-nested-components
v1.0.10
Published
Parse nested components out of a parent
Downloads
5
Readme
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
import parseNestedComponent from "parse-nested-components";
const Component = => ({ props }) => <div {...props} />;
const ParentComponent = ({ props }) => <Component {...props} />;
parseNestedComponent(ParentComponent);
// [
// ParentComponent,
// Component,
// ]