タグ

関連タグで絞り込む (0)

  • 関連タグはありません

タグの絞り込みを解除

JavaScriptとReactとreduxとarticleに関するefclのブックマーク (2)

  • Re-ducksパターン:React + Redux のディレクトリ構成ベストプラクティス

    Re-ducks というディレクトリ構成のベストプラクティスについてまとめる。Re-ducksパターンを使うことで、React + Redux を用いた開発がよりメンテナンスしやすいものになる。 Ducks パターン 名前からもわかるように、Re-ducks は Ducks というパターンをベースにしている。 erikras/ducks-modular-redux Ducks パターンが解決すること: actionType、action、reducerが散らばっててつらい 結局のところ actionType、action、reducer は密結合なので、ducksパターンではこれら3つを1つのファイルにまとめる。 // widget.js // Actions const LOAD = 'my-app/widgets/LOAD'; const CREATE = 'my-app/widget

    Re-ducksパターン:React + Redux のディレクトリ構成ベストプラクティス
    efcl
    efcl 2018/10/21
    Reduxの文脈で見るDucksパターンとRe-ducksパターンについて。 ファイルディレクトリ構造をどのようなルールにするかやそれによって解決できることについて
  • Idiomatic Redux: Using Reselect Selectors for Encapsulation and Performance

    Random musings on React, Redux, and more, by Redux maintainer Mark "acemarke" Erikson This is a post in the Idiomatic Redux series. An overview of why and how to use Reselect with React and Redux Intro 🔗︎ In a good Redux architecture, you are encouraged to keep your store state minimal, and derive data from the state as needed. As part of that process, we recommend that you use "selector function

    Idiomatic Redux: Using Reselect Selectors for Encapsulation and Performance
    efcl
    efcl 2017/12/25
    reselectを使ったパフォーマンスの最適化について。 reselectはstateからstateを作るライブラリで、入力に対してメモ化が行われている。 これを使いReduxのstateからアプリケーションに適切な形へstateを変換させる例について紹介
  • 1