{"id":222,"date":"2015-12-03T00:00:00","date_gmt":"2015-12-02T15:00:00","guid":{"rendered":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/blog\/2015\/12\/03\/vue-with-redux"},"modified":"2022-10-28T21:31:57","modified_gmt":"2022-10-28T12:31:57","slug":"vue-with-redux","status":"publish","type":"post","link":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/blog\/2015\/12\/03\/vue-with-redux\/","title":{"rendered":"Vue.js\u306bredux\u3092\u8f09\u305b\u305f\u8a71"},"content":{"rendered":"

\u3053\u306e\u8a18\u4e8b\u306fVue.js Advent Calendar 2015<\/a>\u306e\u7b2c\u4e09\u65e5\u76ee\u306e\u8a18\u4e8b\u3067\u3059\u3002<\/p>\n

\u6982\u8981<\/h2>\n

\u5148\u65e5\u3068\u3042\u308b\u6848\u4ef6\u3067Vue.js<\/code>\u3092\u7528\u3044\u305f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u767a\u3059\u308b\u3053\u3068\u3068\u306a\u308a\u307e\u3057\u305f\u3002
\n\u4e00\u822c\u306b\u540c\u7a2e\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3068\u6bd4\u8f03\u3057\u3066Vue.js<\/code>\u306f\u3001\u5b66\u7fd2\u30b3\u30b9\u30c8\u304c\u4f4e\u304f\u6c17\u8efd\u306b\u306f\u3058\u3081\u3084\u3059\u3044\u3068\u3044\u3046\u3053\u3068\u304c\u30e1\u30ea\u30c3\u30c8\u3068\u3057\u3066\u8a9e\u3089\u308c\u3066\u3044\u307e\u3059\u3002
\n\u305f\u3060\u3001\u4eca\u56de\u306e\u6848\u4ef6\u306e\u3088\u3046\u306bMVC<\/code>\u7cfb\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u7528\u3044\u3066\u958b\u767a\u3059\u308b\u969b\u306b\u30cd\u30c3\u30af\u3068\u306a\u3063\u3066\u3044\u305f\u306e\u304c\u3001\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u9593\u306e\u30c7\u30fc\u30bf\u5171\u6709\u306b\u3064\u3044\u3066\u306e\u6700\u9069\u89e3\u304c\u898b\u3064\u3051\u3089\u308c\u3066\u3044\u306a\u3044\u3068\u611f\u3058\u3066\u3044\u305f\u3053\u3068\u3067\u3057\u305f\u3002
\n\u3082\u3061\u308d\u3093\u3001\u9069\u5207\u306b\u30e2\u30c7\u30eb\u3092\u8a2d\u8a08\u3059\u308c\u3070\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u9593\u306e\u3084\u308a\u53d6\u308a\u306b\u8cac\u4efb\u3092\u6301\u3064\u3001\u89aa\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3068\u3067\u3082\u3044\u3046\u3079\u304d\u5c64\u3092\u5b9f\u88c5\u3059\u308b\u3053\u3068\u3067\u3053\u306e\u554f\u984c\u306f\u89e3\u6c7a\u3067\u304d\u308b\u3068\u601d\u3044\u307e\u3059\u3002
\n\u3057\u304b\u3057\u5b9f\u6848\u4ef6\u3067\u306f\u5f80\u3005\u306b\u3057\u3066\u89aa\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u5c64\u306e\u5b9f\u88c5\u304c\u500b\u3005\u4eba\u306e\u88c1\u91cf\u306b\u9665\u308a\u3084\u3059\u304f\u3001\u7d50\u679c\u7684\u306b\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u9593\u30c7\u30fc\u30bf\u5171\u6709\u306e\u65b9\u5f0f\u304c\u7d71\u4e00\u51fa\u6765\u3066\u3044\u306a\u3044\u30b1\u30fc\u30b9\u3082\u51fa\u3066\u304d\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002
\n\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u9593\u3067\u5171\u6709\u3057\u305f\u3044\u30c7\u30fc\u30bf=\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u672c\u8cea\u3068\u306a\u308b\u30c7\u30fc\u30bf\u306f\u3001\u3082\u3063\u3068\u306f\u3063\u304d\u308a\u3068\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3068\u533a\u5225\u3057\u3066\u8a2d\u8a08\u3057\u305f\u65b9\u304c\u3001\u7d50\u679c\u7684\u306b\u306f\u30b7\u30f3\u30d7\u30eb\u306a\u69cb\u9020\u3092\u4fdd\u3061\u7d9a\u3051\u6613\u3044\u306e\u3067\u306f\u306a\u3044\u304b\uff1f\u3068\u8003\u3048\u305f\u306e\u3067\u3059\u3002<\/p>\n

React.js<\/code>\u3067\u306f\u3001Flux<\/code>\u3092\u8e0f\u8972\u3057\u305f\u8a2d\u8a08\u306b\u3059\u308b\u3053\u3068\u3067\u30e2\u30c7\u30eb\u306f\u5fc5\u7136\u7684\u306b\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u304b\u3089\u5206\u96e2\u3055\u308c\u3001\u5225\u306e\u30ec\u30a4\u30e4\u30fc\u3068\u3057\u3066\u5b9f\u88c5\u3055\u308c\u307e\u3059\u3002
\n\u540c\u3058\u3053\u3068\u3092Vue.js<\/code>\u306b\u3082\u9069\u7528\u3067\u304d\u308c\u3070\u3001\u30e2\u30c7\u30eb\u304b\u3089\u5206\u96e2\u3055\u308c\u305f\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306b\u3088\u308b\u3001\u30b7\u30f3\u30d7\u30eb\u306a\u69cb\u9020\u3092\u4fdd\u3061\u7d9a\u3051\u3084\u3059\u3044\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306b\u51fa\u6765\u305d\u3046\u3067\u3059\u3002<\/p>\n

Vue.js<\/code>\u306e\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u3067\u3082\u5927\u898f\u6a21\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u69cb\u7bc9\u3059\u308b\u969b\u306e\u30d7\u30e9\u30af\u30c6\u30a3\u30b9\u3068\u3057\u3066\u3001Flux<\/code>\u306b\u3088\u308b\u8a2d\u8a08\u306b\u884c\u304d\u7740\u304d\u5f97\u308b\u3053\u3068\u304c\u66f8\u304b\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n

\n

If we enforce a convention where components are never allowed to directly mutate state that belongs to a store, but should instead dispatch events that notify the store to perform actions, we\u2019ve essentially arrived at the Flux architecture.<\/p>\n<\/blockquote>\n

\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u304c(\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u9593\u3067\u5171\u6709\u3057\u305f\u3044\u3088\u3046\u306a)store<\/code>\u306b\u5c5e\u3059\u308b\u72b6\u614b<\/code>\u3092\u76f4\u63a5\u5909\u66f4\u305b\u305a\u3001\u305d\u306e\u4ee3\u308f\u308astore<\/code>\u3078\u767a\u751f\u3057\u305faction<\/code>\u3092\u901a\u77e5\u3059\u308b\u3060\u3051\u306b\u7559\u3081\u3088\u3046\u3068\u3059\u308b\u306a\u3089\u3001Flux<\/code>\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u306e\u6982\u5ff5\u306b\u8fbf\u308a\u7740\u3044\u305f\u3068\u8a00\u3048\u307e\u3059\u3001\u307f\u305f\u3044\u306b\u89e3\u91c8\u3057\u307e\u3057\u305f\u3002<\/p>\n

\n

The Flux architecture is commonly used in React applications. Turns out the core idea behind Flux can be quite simply achieved in Vue.js, thanks to the unobtrusive reactivity system.<\/p>\n<\/blockquote>\n

\u4e00\u822c\u306bFlux<\/code>\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u306fReact<\/code>\u306b\u3088\u308b\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3067\u4f7f\u7528\u3055\u308c\u3066\u3044\u307e\u3059(\u304c\u3001)\u63a7\u3048\u3081\u306a\u30ea\u30a2\u30af\u30c6\u30a3\u30d3\u30c6\u30a3\u6a5f\u69cb\u306e\u304a\u304b\u3052\u3067\u3001\u3068\u3066\u3082\u7c21\u5358\u306bFlux<\/code>\u306e\u4e2d\u5fc3\u7684\u306a\u30a2\u30a4\u30c7\u30a3\u30a2\u3092Vue.js<\/code>\u306b\u9069\u7528\u3067\u304d\u308b\u3053\u3068\u304c\u308f\u304b\u308a\u307e\u3059\u3001\u307f\u305f\u3044\u306b\u89e3\u91c8\u3057\u307e\u3057\u305f\u3002<\/p>\n

Building Large-Scale Apps\/State Management<\/a>
\n
\u90a6\u8a33\u7248<\/a><\/p>\n

\u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8\u306b\u3042\u308b\u3088\u3046\u306b\u3001Vue.js<\/code>\u3068Flux<\/code>\u7cfb\u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u3001\u4e92\u3044\u306b\u5bfe\u3057\u3066\u758e\u7d50\u5408\u306a\u8a2d\u8a08\u3092\u4fdd\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u975e\u5e38\u306b\u7c21\u5358\u306b\u9069\u7528\u3059\u308b\u3053\u3068\u304c\u51fa\u6765\u307e\u3057\u305f\u3002
\n\u672c\u7a3f\u3067\u306fFlux<\/code>\u306e\u3088\u308a\u6d17\u7df4\u3055\u308c\u305f\u5f62\u3067\u3042\u308bRedux<\/code>\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u63a1\u7528\u3057\u3001Vue.js<\/code>\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3068\u306e\u9023\u643a\u306b\u3064\u3044\u3066\u66f8\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n

\u5b9f\u88c5<\/h2>\n

\u304a\u3088\u305d\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u624b\u9806\u3067\u5b9f\u88c5\u3057\u307e\u3057\u305f\u3002<\/p>\n

    \n
  1. React.js<\/code>\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u540c\u69d8\u306bconstant<\/code>,actionCreator<\/code>,Reducer<\/code>\u3092\u4f5c\u6210\u3057\u307e\u3059<\/li>\n
  2. \u30a8\u30f3\u30c8\u30ea\u30fc\u30dd\u30a4\u30f3\u30c8\u3068\u306a\u308bRoot VueModel<\/code>\u306edata<\/code>\u306bstore<\/code>\u3092\u4f5c\u6210\u3057\u307e\u3059<\/li>\n
  3. 1<\/code>\u306e\u5b50\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306bprops<\/code>\u3068\u3057\u3066store<\/code>\u3092\u6e21\u3057\u307e\u3059<\/li>\n
  4. \u5b50\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306f\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u3001\u81ea\u8eab\u306e\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u306e\u9069\u3057\u305f\u30bf\u30a4\u30df\u30f3\u30b0\u3067store<\/code>\u3092\u8cfc\u8aad\u3057\u307e\u3059<\/li>\n
  5. \u5b50\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306f(\u4e3b\u306b\u30e6\u30fc\u30b6\u30fc\u306e)\u5165\u529b\u306b\u5fdc\u3058\u3066\u3001\u9069\u5b9caction<\/code>\u3092\u767a\u884c\u3057\u307e\u3059<\/li>\n<\/ol>\n

    \u4ee5\u4e0b\u306b\u7c21\u5358\u306a\u30b3\u30fc\u30c9\u4f8b\u3092\u8f09\u305b\u3064\u3064\u5b9f\u88c5\u624b\u9806\u3092\u8aac\u660e\u3057\u307e\u3059\u3002<\/p>\n

    1.React.js<\/code>\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u540c\u69d8\u306bconstant<\/code>,actionCreator<\/code>,Reducer<\/code>\u3092\u4f5c\u6210\u3057\u307e\u3059<\/h3>\n
    \/\/ constant.js\nconst CHANGE_STATE = 'CHANGE_STATE';\n\n\/\/ actionCreator.js\nexport function changeMyState(nextState) {\n  return {\n    type: CHANGE_STATE,\n    nextState: nextState,\n  };\n}\n\n\/\/ reducer.js\nconst initialState = {\n  currentState: '\u6700\u521d\u306e\u72b6\u614b',\n};\n\nfunction myState(state = initialState, action) {\n  switch (action.type) {\n\n  case CHANGE_STATE:\n    return {\n      currentState: state.nextState,\n    };\n\n  default:\n    return state;\n  }\n}\n\nconst reducers = combineReducers({\n  myState: myState,\n});\n\nexport default reducers;<\/code><\/pre>\n

    2.\u30a8\u30f3\u30c8\u30ea\u30fc\u30dd\u30a4\u30f3\u30c8\u3068\u306a\u308bRoot VueModel<\/code>\u306edata<\/code>\u306bstore<\/code>\u3092\u4f5c\u6210\u3057\u307e\u3059<\/h3>\n
    import { createStore } from 'redux';\nimport reducers from '.\/reducers';\n\nnew Vue({\n  el: '#root',\n  data: {\n    stores: createStore(reducers),\n  },\n  components: {\n    'my-component': myComponent,\n  },\n});<\/code><\/pre>\n

    3.1<\/code>\u306e\u5b50\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306bprops<\/code>\u3068\u3057\u3066store<\/code>\u3092\u6e21\u3057\u307e\u3059<\/h3>\n
    <!--index.html-->\n<!DOCTYPE html>\n<html>\n<head>\n  <meta charset="UTF-8">\n  <title>title<\/title>\n<\/head>\n<body>\n  <div id="root">\n    <my-component :store="store" ><\/my-component>\n  <\/div>\n  <script src=".\/bundle.js"><\/script>\n<\/body>\n<\/html><\/code><\/pre>\n

    React.js<\/code>\u306e\u3088\u3046\u306b\u3001\u7d30\u304b\u304f\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u4f5c\u308a\u3053\u3093\u3067\u3044\u304f\u3088\u3046\u306a\u8a2d\u8a08\u3060\u3068\u3001\u5b50\u3005\u5b6b\u3005\u307e\u3067store<\/code>\u3092\u9069\u7528\u3059\u308b\u306e\u304c\u975e\u5e38\u306b\u9762\u5012\u306b\u306a\u308b\u306e\u3067react-redux<\/code>\u306e\u63d0\u4f9b\u3059\u308bconnect<\/code>\u306e\u3088\u3046\u306a\u4ed5\u7d44\u307f\u304c\u5fc5\u8981\u306b\u306a\u3063\u3066\u304d\u307e\u3059\u304c\u3001Vue.js<\/code>\u3067\u306f\u6a5f\u80fd\u3054\u3068\u304f\u3089\u3044\u306e\u7c92\u5ea6\u3067\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u4f5c\u6210\u3059\u308b\u306e\u3067\u305d\u306e\u3088\u3046\u306a\u554f\u984c\u304c\u767a\u751f\u3057\u307e\u305b\u3093\u3067\u3057\u305f\u3002
    \n\u305d\u306e\u305f\u3081\u89aa\u304b\u3089\u5b50\u3078\u76f4\u63a5store<\/code>\u3092\u624b\u6e21\u3057\u3057\u3066\u3044\u307e\u3059\u304c\u3001\u3082\u3063\u3068\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u968e\u5c64\u304c\u6df1\u304f\u306a\u308b\u3088\u3046\u3067\u3042\u308c\u3070\u3001react-redux\/connect<\/code>\u306b\u985e\u3059\u308b\u6a5f\u69cb\u304c\u5fc5\u8981\u306b\u306a\u3063\u3066\u304f\u308b\u304b\u3082\u77e5\u308c\u307e\u305b\u3093\u3002<\/p>\n

    4.\u5b50\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306f\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u81ea\u8eab\u306e\u30e9\u30a4\u30d5\u30b5\u30a4\u30af\u30eb\u306e\u9069\u3057\u305f\u30bf\u30a4\u30df\u30f3\u30b0\u3067store<\/code>\u3092\u8cfc\u8aad\u3057\u307e\u3059<\/h3>\n
    \/\/ my-component.js\nimport Vue from 'vue';\nimport template from '.\/template';\n\nexport default Vue.extend({\n  data() {\n    return {\n      currentState: this.store.getState().myState.currentState,\n    };\n  },\n  props: ['store'],\n  created() {\n    this.store.subscribe(()=> {\n      this.currentState = this.store.getState().myState.currentState;\n    });\n  },\n  template: `\n  <div>\n    {{currentState}}\n    <button @click="onClickAndDispatch">\u72b6\u614b\u3092\u66f4\u65b0\u3059\u308b<\/button>\n  <\/div>\n  `,\n});<\/code><\/pre>\n

    \u3053\u306e\u4f8b\u3067\u306fcreated<\/code>\u306e\u30bf\u30a4\u30df\u30f3\u30b0\u3067store<\/code>\u306e\u8cfc\u8aad\u3092\u958b\u59cb\u3057\u3066\u3044\u307e\u3059\u3002
    \n\u30b5\u30fc\u30d0\u30fc\u30b5\u30a4\u30c9\u3067\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u3057\u305fHTML\u306bVue.js<\/code>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u9069\u7528\u3057\u3066\u3044\u308b\u5834\u5408\u306b\u3001jQuery<\/code>\u306a\u3093\u304b\u306eDOM<\/code>\u3092\u76f4\u63a5\u89e6\u308b\u3088\u3046\u306a\u5fc5\u8981\u304c
    \n\u3042\u308c\u3070\u3001DOM<\/code>\u751f\u6210\u5f8c\u3068\u306a\u308bready<\/code>\u306e\u30bf\u30a4\u30df\u30f3\u30b0\u306b\u8cfc\u8aad\u3092\u958b\u59cb\u3057\u3066\u3082\u3044\u3044\u304b\u3082\u77e5\u308c\u307e\u305b\u3093\u3002<\/p>\n

    5.\u5b50\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306f(\u4e3b\u306b\u30e6\u30fc\u30b6\u30fc\u306e)\u5165\u529b\u306b\u5fdc\u3058\u3066\u3001\u9069\u5b9caction<\/code>\u3092\u767a\u884c\u3057\u307e\u3059\u3002<\/h3>\n
    export default Vue.extend({\n  ... \/\/ my-component.js\u306e\u7d9a\u304d\n  methods: {\n    onClickAndDispatch() {\n      const nextState = '\u65b0\u3057\u3044\u72b6\u614b';\n      this.store.dispatch(changeMyState(nextState));\n    },\n  }\n});<\/code><\/pre>\n

    \u4e0a\u8ff0\u306e\u901a\u308a\u3001store<\/code>\u306e\u4f1d\u64ad\u65b9\u6cd5\u3068\u8cfc\u8aad\u306e\u30bf\u30a4\u30df\u30f3\u30b0\u4ee5\u5916\u306f\u307b\u3068\u3093\u3069React.js<\/code>\u306e\u6642\u3068\u540c\u3058\u3088\u3046\u306b\u4f7f\u3046\u4e8b\u304c\u3067\u304d\u307e\u3059\u3002
    \nRedux<\/code>\u306e\u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u3082\u7279\u5225\u306b\u5de5\u592b\u3059\u308b\u3053\u3068\u306a\u304f\u4f7f\u3048\u307e\u3059\u306e\u3067\u3001\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u62e1\u5f35\u3067\u304d\u3066\u4fbf\u5229\u3067\u3059\u3002<\/p>\n

    \u4f7f\u3063\u3066\u307f\u3066\u306e\u96d1\u611f<\/h2>\n

    \u826f\u3044\u70b9<\/h3>\n

    \u30e2\u30c7\u30eb\u304c\u534a\u5f37\u5236\u7684\u306b\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u304b\u3089\u5206\u96e2\u3055\u308c\u308b<\/h4>\n

    \u6982\u8981\u306b\u66f8\u3044\u305f\u3088\u3046\u306b\u30e2\u30c7\u30eb\u304c\u534a\u5f37\u5236\u7684\u306b<\/code>\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u304b\u3089\u8ffd\u3044\u51fa\u3055\u308c\u308b\u305f\u3081\u3001\u8a2d\u8a08\u65b9\u91dd\u3092\u5171\u6709\u3057\u3084\u3059\u304f\u306a\u308a\u307e\u3057\u305f\u3002
    \n\u3069\u3061\u3089\u304b\u3068\u8a00\u3046\u3068\u8a2d\u8a08\u304b\u3089\u30ba\u30ec\u305f\u5b9f\u88c5\u3092\u4f5c\u308b\u65b9\u304c\u9762\u5012\u306a\u306e\u3067\u3001\u8a2d\u8a08\u65b9\u91dd\u3092\u62c5\u4fdd\u3057\u6613\u3044\u3068\u3053\u308d\u304c\u826f\u3044\u3068\u601d\u3044\u307e\u3059\u3002
    \n\u307e\u305f\u3001\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306e\u8cac\u4efb\u3092\u63cf\u753b\u5185\u5bb9\u306b\u96c6\u4e2d\u3055\u305b\u3084\u3059\u304f\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n

    \u30c6\u30b9\u30c8\u3057\u3084\u3059\u3044<\/h4>\n

    actionCreators<\/code>\u30ec\u30a4\u30e4\u30fc\u304c\u975e\u540c\u671f\u51e6\u7406\u3092\u542b\u3081\u305f\u6700\u65b0\u306e\u72b6\u614b\u306e\u53d6\u5f97<\/code>\u306b\u307e\u3064\u308f\u308b\u51e6\u7406\u3092\u5358\u306a\u308b\u95a2\u6570\u3068\u3057\u3066\u5b9f\u88c5\u3057\u3066\u3044\u308b\u304a\u304b\u3052\u3067\u3001\u3068\u3066\u3082\u30c6\u30b9\u30c8\u304c\u3057\u6613\u3044\u8a2d\u8a08\u306b\u306a\u308a\u307e\u3057\u305f\u3002
    \n\u4e00\u90e8\u306e\u30b3\u30fc\u30c9\u306f\u30c6\u30b9\u30c8\u30d5\u30a1\u30fc\u30b9\u30c8\u3067\u66f8\u304f\u3053\u3068\u304c\u51fa\u6765\u305f\u306e\u3067\u3001\u3082\u3046\u30e9\u30a4\u30aa\u30f3\u3082\u6016\u304f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n

    Redux\u306e\u826f\u3055\u3092\u305d\u306e\u307e\u307e\u6d3b\u304b\u305b\u308b<\/h4>\n

    \u30df\u30c9\u30eb\u30a6\u30a7\u30a2\u306e\u4ed5\u7d44\u307f\u304c\u305d\u306e\u307e\u307e\u4f7f\u3048\u308b\u306e\u3067\u3001\u958b\u767a\u52b9\u7387\u306e\u5411\u4e0a\u7528\u30c4\u30fc\u30eb\u3092React.js<\/code>\u306e\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u304b\u3089\u6d41\u7528\u3067\u304d\u307e\u3057\u305f\u3002<\/p>\n

    \u60aa\u3044\u70b9<\/h3>\n

    Redux(Flux)\u81ea\u4f53\u306e\u5b66\u7fd2\u30b3\u30b9\u30c8<\/h4>\n

    \u3082\u3068\u3082\u3068Vue.js<\/code>\u3092\u63a1\u7528\u3057\u305f\u80cc\u666f\u306b\u3001JavaScript<\/code>\u5c02\u696d\u306e\u30a8\u30f3\u30b8\u30cb\u30a2\u3068\u306e\u5354\u696d\u306e\u305f\u3081\u306e\u5b66\u7fd2\u30b3\u30b9\u30c8\u306e\u4f4e\u3055<\/code>\u304c\u3042\u308a\u307e\u3057\u305f\u304c\u3001Flux<\/code>\u3092\u5c0e\u5165\u3057\u305f\u3053\u3068\u3067\u78ba\u5b9f\u306b\u5b66\u7fd2\u30b3\u30b9\u30c8\u304c\u5e95\u4e0a\u3052\u3055\u308c\u3066\u3057\u307e\u3044\u307e\u3057\u305f\u3002<\/p>\n

    Flux<\/code>\u3092\u69cb\u6210\u3057\u3066\u3044\u308b\u30c7\u30b6\u30a4\u30f3\u81ea\u4f53\u306f\u7279\u6bb5\u73cd\u3057\u3044\u3082\u306e\u3067\u306f\u306a\u3044\u3068\u601d\u3044\u307e\u3059\u304c\u3001\u30af\u30e9\u30a4\u30a2\u30f3\u30c8\u30b5\u30a4\u30c9\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304cFlux<\/code>\u306b\u305f\u3069\u308a\u7740\u3044\u305f\u7d4c\u7def\u3084\u3001\u30e1\u30ea\u30c3\u30c8\u3092\u611f\u3058\u308b\u305f\u3081\u306e\u80cc\u666f\u3092\u4e8b\u524d\u306b\u7c21\u5358\u306b\u8aac\u660e\u3057\u3066\u304a\u3044\u305f\u65b9\u304c\u30b9\u30e0\u30fc\u30ba\u306b\u884c\u304f\u304b\u3082\u77e5\u308c\u307e\u305b\u3093\u3002<\/p>\n

    \u7a4d\u6975\u7684\u306bVue.js\u3092\u4f7f\u3046\u30e1\u30ea\u30c3\u30c8\u306f<\/h4>\n

    \u3053\u308cReact<\/code>+Redux<\/code>\u3058\u3083\u30c0\u30e1\u306a\u306e\u304b\u2026\uff1f \u307f\u305f\u3044\u306a\u5fc3\u306e\u58f0\u304c\u5e38\u306b\u805e\u3053\u3048\u307e\u3057\u305f\u3002
    \n\u305f\u3060\u3057\u3001Vue.js<\/code>\u306f\u4ed6\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3068\u306e\u5dee\u5225\u30dd\u30a4\u30f3\u30c8\u306b\u5354\u696d\u306e\u3057\u6613\u3055<\/code>\u3092\u6319\u3052\u3066\u3044\u308b\u306e\u3067\u3001JavaScript<\/code>\u5c02\u696d\u306e\u30a8\u30f3\u30b8\u30cb\u30a2\u304c\u4f55\u540d\u3082\u78ba\u4fdd\u3067\u304d\u308b\u306e\u3067\u3042\u3063\u305f\u308a\u3001\u30c7\u30b6\u30a4\u30ca\u30fc\u304cJSX<\/code>\u69cb\u6587\u3092\u554f\u984c\u306a\u304f\u4f7f\u3044\u3053\u306a\u3059\u3088\u3046\u306a\u74b0\u5883\u3067\u306a\u3051\u308c\u3070\u3001Vue.js<\/code>\u3092\u63a1\u7528\u3059\u308b\u30e1\u30ea\u30c3\u30c8\u306f\u3042\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n

    \u30b3\u30fc\u30c9\u91cf\u304c\u5897\u3048\u308b<\/h4>\n

    \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u72b6\u614b\u304c\u3042\u308b\u3079\u304d\u59ff\u30921\u3064\u305a\u3064\u5ba3\u8a00\u3057\u3066\u3044\u304f\u624b\u524d\u3001\u30e2\u30c7\u30eb\u3092\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306b\u8a18\u8ff0\u3059\u308b\u5834\u5408\u306b\u6bd4\u3079\u3066\u30b3\u30fc\u30c9\u91cf\u306f\u78ba\u5b9f\u306b\u5897\u3048\u307e\u3059\u3002
    \n\u5171\u901a\u3057\u3066\u4f7f\u3046\u5ba3\u8a00\u306f\u30af\u30e9\u30b9\u306b\u307e\u3068\u3081\u308b\u306a\u3069\u3001\u306a\u308b\u3079\u304f\u5358\u7d14\u306a\u30bf\u30a4\u30d7\u6570\u304c\u5897\u3048\u3059\u304e\u306a\u3044\u3088\u3046\u306b\u6c17\u3092\u4f7f\u3046\u5fc5\u8981\u304c\u3042\u308b\u304b\u3082\u77e5\u308c\u307e\u305b\u3093\u3002<\/p>\n

    \u307e\u3068\u3081<\/h2>\n

    \u601d\u3044\u306e\u5916\u3059\u3093\u306a\u308a\u5c0e\u5165\u3067\u304d\u3066\u9a5a\u304d\u307e\u3057\u305f\u3002
    \nRedux<\/code>\u306b\u3088\u308b\u898b\u901a\u3057\u306e\u826f\u3044\u8a2d\u8a08\u306f\u6c17\u306b\u5165\u3063\u3066\u3044\u308b\u306e\u3067\u3001\u6a5f\u4f1a\u304c\u3042\u308c\u3070\u4ed6\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306b\u3082\u7d44\u307f\u8fbc\u3093\u3067\u307f\u305f\u3044\u3068\u601d\u3063\u3066\u3044\u307e\u3059(Angular<\/code>\u3068\u304b)<\/p>\n

    2015.12.5\u66f4\u65b0<\/em>
    \n\u3053\u306e\u30dd\u30b9\u30c8\u3067\u89e6\u308c\u305f\u3088\u3046\u306a\u5b9f\u88c5\u3092\u3001\u30e9\u30a4\u30d6\u30e9\u30ea\u3068\u3057\u3066\u5207\u308a\u51fa\u3057\u3066\u3044\u308b\u30ec\u30dd\u30b8\u30c8\u30ea\u3092\u898b\u3064\u3051\u307e\u3057\u305f\u3002
    \n(\u3053\u306e\u30dd\u30b9\u30c8\u3068\u524d\u5f8c\u3059\u308b\u6642\u671f\u306b\u958b\u767a\u304c\u59cb\u307e\u3063\u305f\u3088\u3046\u3067\u3059)<\/p>\n

    revue<\/a><\/p>\n

    \u3084\u3063\u3066\u3044\u308b\u3053\u3068\u306f\u307b\u3068\u3093\u3069\u540c\u3058\u3067\u3059\u304c\u3001\u3053\u3061\u3089\u306e\u30e9\u30a4\u30d6\u30e9\u30ea\u3092\u4f7f\u3063\u305f\u307b\u3046\u304c\u697d\u305d\u3046\u3067\u3059\u3002<\/p>\n

    Vue.js\u3084React\u3001Flux\u3092\u63a1\u7528\u3057\u305f\u30e2\u30c0\u30f3\u306a\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u958b\u767a<\/a>\u3092\u3054\u691c\u8a0e\u306e\u4f01\u696d\u69d8\u306f\u3001\u662f\u975eMMM\u306b\u3054\u76f8\u8ac7\u4e0b\u3055\u3044\u307e\u305b\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"

    \u3053\u306e\u8a18\u4e8b\u306fVue.js Advent Calendar 2015\u306e\u7b2c\u4e09\u65e5\u76ee\u306e\u8a18\u4e8b\u3067\u3059\u3002 \u6982\u8981 \u5148\u65e5\u3068\u3042\u308b\u6848\u4ef6\u3067Vue.js\u3092\u7528\u3044\u305f\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u958b\u767a\u3059\u308b\u3053\u3068\u3068\u306a\u308a\u307e\u3057\u305f\u3002 \u4e00\u822c\u306b\u540c\u7a2e\u306e\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3068\u6bd4\u8f03\u3057\u3066Vue.js\u306f\u3001\u5b66\u7fd2\u30b3\u30b9\u30c8\u304c\u4f4e\u304f\u6c17\u8efd\u306b\u306f\u3058\u3081\u3084\u3059\u3044\u3068\u3044\u3046\u3053\u3068\u304c\u30e1\u30ea\u30c3\u30c8\u3068\u3057\u3066\u8a9e\u3089\u308c\u3066\u3044\u307e\u3059\u3002 \u305f\u3060\u3001\u4eca\u56de\u306e\u6848\u4ef6\u306e\u3088\u3046\u306bMVC\u7cfb\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u3092\u7528\u3044\u3066\u958b\u767a\u3059\u308b\u969b\u306b\u30cd\u30c3\u30af\u3068\u306a\u3063\u3066\u3044\u305f\u306e\u304c\u3001\u30b3\u30f3 […]<\/p>\n","protected":false},"author":1,"featured_media":684,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[77,42,138],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/posts\/222"}],"collection":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/comments?post=222"}],"version-history":[{"count":1,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/posts\/222\/revisions"}],"predecessor-version":[{"id":3449,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/posts\/222\/revisions\/3449"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/media?parent=222"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/categories?post=222"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/p-corporate-blog-cms.mmmcorp.co.jp\/wp-json\/wp\/v2\/tags?post=222"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}