Skip to content

协助开发者在react-model环境下方便查看相关model的state的chrome插件

Notifications You must be signed in to change notification settings

ZYK1236/react-model-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Vue logo

react-model-helper

使用说明

  • clone到本地后,打开chrome开发者模式后,将文件夹 📁 拖入应用扩展里面即可使用
  • 记得在modal的index.js中加上一句代码 window.getState = getState
  • 输入的是react-model中定义的model名字,例如Demo,Login,如下代码所示
import { Model } from 'react-model'
import Login from './login'
import Demo from './demo'

const models = { Login,Demo } // 就是这里的名字

export const { getInitialState, useStore, getState, actions, subscribe, unsubscribe } = Model(models)
window.getState = getState

About

协助开发者在react-model环境下方便查看相关model的state的chrome插件

Resources

Stars

Watchers

Forks

Packages

No packages published