0.0.1 • Published 4 years ago
build-plugin-rematch v0.0.1
BUILD-PLUGIN-REMATCH
descript
Basic plugin help user use rematch.
use
tnpm i --save-dev build-plugin-rematch
// build.json
{
"plugins": [
"build-plugin-rematch"
]
}
// src/index.ts
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import store from 'ice/rematch';
import Home from './pages/Home'
ReactDOM.render(<Provider store={store}>
<Home />
</Provider>, ICE_CONTAINER);
options
storePath: specify store file (this plugin won't generate store code and it will resolve ice/rematch to user's specify store file).