Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/idyll-lang/idyll-component-children

Utilities for manipulating children components
https://github.com/idyll-lang/idyll-component-children

Last synced: 14 days ago
JSON representation

Utilities for manipulating children components

Awesome Lists containing this project

README

        

# idyll-component-children
Utilities for manipulating children components

## Usage

```js
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;
})

```