1.0.10 • Published 5 years ago

idyll-component-children v1.0.10

Weekly downloads
477
License
ISC
Repository
-
Last release
5 years ago

idyll-component-children

Utilities for manipulating children components

Usage

const { filterChildren, mapChildren } = require('idyll-component-children');

filterChildren(children, (c) => {
  // Filter for components named 'mycomponent'
  return c.type.name && c.type.name.toLowerCase() === 'mycomponent';
})


mapChildren(children, (c) => {
  // .. do some modification to the child
  return c;
})
1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago