タグ

react.jsとReact-refluxに関するtouch_webのブックマーク (2)

  • React Native - Reflux - Qiita

    Refluxjs reflux/refluxjsはFluxの実装の1つです。2015年12月時点での最有力FluxアーキテクチャはReduxですが、RefluxもStarが4000以上あるレポジトリで、Facebook Fluxとの違いは下記のようになります。 dispacherはない actionがListenableでstoreからListenできる storeにswitch文を必要としない Action creatorを必要としない このようにfacebook/fluxを簡略化した形で書けるのが利点になります。Constantも書く必要がないのでファイルを行ったり来たりしなくて良いのでコードを書く上で非常に助かります。(Facebook fluxを書いてみると分かりますが、これが意外と面倒でタイポする確率も上がり、生産的ではないです) それでは見てみましょう。 Installatio

    React Native - Reflux - Qiita
  • The Reflux data flow model

    Exploring the Reflux data flow model, advocating why it is a good idea, and showing what it can look like in a React app Rewhat?At its heart, Reflux is really just a PubSub library. That is, we have a Publisher API for objects who transmit events, and a Subscriber API for objects who want to listen to such events. There is however a paradigm shift in how Reflux expects you to structure your data f

    The Reflux data flow model
  • 1