Typography

活版印字


  • Home
  • Archive
  • Categories
  • Tags
  •  

© 2020 alincode

Theme Typography by Makito

Proudly published with Hexo

React Debug 小技巧

Posted at 2016-03-26 debug 

Flux Store Events

其實也沒有高深的理論,但我從來沒想過可以這樣用,將 Store / Action / Dispatcher 暫時變成全域變數。

1
2
// TodoStore.js
window.todoStore = todoStore;

然後就可以在 Chrome Console 直接下,直接執行 function。

1
todoStore.your-function-name();

https://youtu.be/bvEC6i7CUyE?t=2m57s

Share 

 Previous post: sequelize delete Next post: 取得其他 git remote branch 

© 2020 alincode

Theme Typography by Makito

Proudly published with Hexo