s2s plugin: create initial-state from flow info
$ npm install --save-dev babel-plugin-s2s-initial-state-creater
// @flow
type Count = number
type State = { count: Count, isLoading: boolean }
const initialState: State = {}
// @flow
type Count = number
type State = { count: Count, isLoading: boolean }
const initialState: State = { count: 0, isLoading: false }
{
['s2s-initial-state-creater']
}
type: string
required: true
Set target.js path
If you use s2s
, you don't use this option. s2s handle it automatically.