Nobody Publish Monsters

    This package has been deprecated

    Author message:

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

    @okwolo/history

    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>

    Keywords

    none

    Install

    npm i @okwolo/history

    DownloadsWeekly Downloads

    1

    Version

    1.2.0

    License

    MIT

    Last publish

    Collaborators

    • g-harel