spaz-client
v1.0.0-rc2
Published
Spaz Microframework client component for React SPA
Downloads
3
Readme
spaz-client
Web App Microframework for building Single-Page Applications.
Architecture
- Single-Page client leveraging React, Redux, and Middle-router
Installation
Use the spaz-cli
tool to generate a full Spaz project:
npm install -g spaz-cli
spaz new <project>
Or install the spaz-client
separately through npm
:
npm install --save spaz-server
Example
import SpazClient from 'spaz-client'
import root from './middlewares/root' // Middle Router middlewares
import reducers from './reducers' // Object of redux reducers to be combined
let node = document.getElementById('application') // node to mount React
let spaz = new SpazClient({ reducers, node })
spaz.router.use('/', root)
spaz.start()
API Documentation
Coming ...