Nominally Patriotic Meathead
Unleash awesomeness. Private packages, team management tools, and powerful integrations. Get started with npm Orgs »

js-kernel

0.2.2 • Public • Published

JS Kernel

A kernel for your javascript app

 
import {build} from 'js-kernel';
 
const kernel = build({
    // Are we in development or production
    development: true,
    // Initial Redux State
    initialState: {},
    // Redux Reducer
    reducer: (state, action) => state,
    // React Router Routes
    routes: [],
    // Redux Middleware
    middleware: [],
    // Redux Store Enhancers
    enhancers: [],
    // Where to store the router state
    selectLocationState: state => state.router
}, {});
 
// Render app
kernel.render({
    // Element to render to
    element: document.getElementById('root')
});
 

install

npm i js-kernel

Downloadsweekly downloads

1

version

0.2.2

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability