Skip to content

idyll-lang/idyll-component-children

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Utilities for manipulating children components

Resources

License

Stars

Watchers

Forks

Packages

No packages published