embla
v1.0.0
Published
Meta Framework to manage your applications across frameworks
Downloads
105
Maintainers
Readme
Metaframework
TODO: description
Installation
TODO: description
API
createEmble(Observer)
Observer
Observer (Function)
Arguments:
- next (Function) - Function call when you need to update the state of children
const embla = createEmble((next) => {
setTimeout(() => next(1000), 1000)
})
Embla
child (Function)
- Adds a child who listens to the observer change.
Arguments:
- manifest (Object|Function) - TODO:
- isShow (Function) - Returns a boolean value for mounting or unmounting a child
- extraArgument - Optional extras
embla.child(
{
mount: () => {},
unmount: () => {},
default: () => {}
},
() => true,
{ staticValue: 'foo' }
)