简体   繁体   中英

How can I expose Redux store as global variable?

Basically there is an redux/react app which I inspected in chrome dev tools and I found it has a flag in redux store similar to

"premiumFeature": false;

So I want to change it just to see what happens, how do I do that ? How can I change it manually ? How can I expose it as global var?

You can try Redux DevTool chrome extension, it gonna help you control dispatching actions , getting previous states and a lot more.

Also, check their docs from here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM