Skip to content
/ embla Public

Meta Framework to manage your applications across frameworks

Notifications You must be signed in to change notification settings

mitkaaa/embla

Repository files navigation

NPM Version NPM Downloads Build Status Coverage Status CodeFactor

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

Thanks

About

Meta Framework to manage your applications across frameworks

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published