create-app
v2.1.0
Published
configuring once, rendering both client and server.
Downloads
390
Maintainers
Readme
Create App
Configuring once, rendering both client and server.
Installation
Using npm:
$ npm install --save create-app
// using an ES6 transpiler, like babel
import createApp from 'create-app/client'
createApp()
import createApp from 'create-app/server'
createApp()
// not using an ES6 transpiler
var createApp = require('create-app/client')
var createApp = require('create-app/server')
Basic Usage
import createApp from 'create-app/client'
const app = createApp({
container: 'body',
basename: '/abc',
})
app.start(resolve, false)
let targetPath = `/random${Math.random().toString(36).substr(2, 6)}`
app.history.push(targetPath)