This package has been deprecated

Author message:

contents moved to okwolo/src/modules/state...

@okwolo/state
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

logo

okwolo

NPM version Build Status Codecov gzipped size typing included

okwolo is a small framework made to jumpstart projects by solving common web application challenges. The default okwolo package includes state management, layout and routing functionality. All modules have a common .use function that accepts okwolo's configuration objects called blobs.

Documentation links
kits /docs/kits
top level api /docs/api
element syntax /docs/syntax
blobs /docs/blobs

Example

let app = okwolo(document.body);

app.setState({
    fruits: ['orange', 'apple', 'pear']
});

let FruitItem = ({type}) => (
    ['li.fruit', {}, [
        type,
    ]]
);

app(() => ({fruits}) => (
    ['ul.fruit-list', {},
        fruits.map((type) => (
            [FruitItem, {type}]
        )),
    ]
));
<ul class="fruit-list">
    <li class="fruit">orange</li>
    <li class="fruit">apple</li>
    <li class="fruit">pear</li>
</ul>

Readme

Keywords

none

Package Sidebar

Install

npm i @okwolo/state

Weekly Downloads

1

Version

1.2.0

License

MIT

Last publish

Collaborators

  • g-harel