import ReactDOM from 'react-dom'
import { MyDataCreate, MyDataList, reducer } from 'volantis-mydata'
import { Provider } from 'react-redux'
import { createStore, combineReducers } from 'redux'
const rootReducers = combineReducers({ volantisMyData: combineReducers(reducer) })
const store = createStore(rootReducers)
const myDataProps = {
linkTo: (backTo) => {
// back to specified route
console.log(backTo)
},
}
ReactDOM.render((<Provider store={store()}><MyDataCreate {...myDataProps} /></Provider>), mountNode)
"dependencies": {
// other depedencies ......
"react": "link:../node_modules/react",
"react-dom": "link:../node_modules/react-dom",
"react-redux": "link:../node_modules/react-redux",
"redux": "link:../node_modules/redux",
"redux-thunk": "link:../node_modules/redux-thunk",
"styled-components": "link:../node_modules/styled-components",
"volantis-mydata-ssr": "link:..",
"volantis-ui": "link:../node_modules/volantis-ui",
}
npm link react react-dom redux redux-thunk styled-components volantis-mydata-ssr volantis-ui