# zrv **Repository Path**: zhirui/zrv ## Basic Information - **Project Name**: zrv - **Description**: react 全家桶整合 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-05-15 - **Last Updated**: 2021-06-29 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 要实现的接口方式 ``` /** main.js **/ import ReactApp from '@react/app' import store from './store' import router from './router' const app = new ReactApp({ store, router, render: mount => mount(App, '#main') }) ``` ``` /** /store/index.js **/ import ReactStore from '@react/store' const store = new ReactStore({ state: {} models: { modelName: { namespaced: true, state: {} reducers: { }, effects: { }, watch: { }, getters: { } middlewares: [ ], enhancers: [ ] } }, reducers: { }, effects: { }, watch: { }, getters: { } middlewares: [ ], enhancers: [ ] }) ``` ``` /** /router/index.js **/ import ReactRouter from '@react/router' const router = new ReactRouter({ mode: 'history', routes: [{ path: '/', component: PageComponent, meta: { title: '首页' }, children: [ { path: 'example', component: ExamplePage, meta: { title: '例子' }, } ] }] }) router.match router.push router.replace router.go router.Component ```