{"id":10042,"date":"2020-04-12T14:38:17","date_gmt":"2020-04-12T05:38:17","guid":{"rendered":"http:\/\/www.code-magagine.com\/?p=10042"},"modified":"2023-05-05T19:04:35","modified_gmt":"2023-05-05T10:04:35","slug":"%e3%80%90javascript%e3%80%91%e3%80%8c%e7%8a%b6%e6%85%8b%e7%ae%a1%e7%90%86%e3%80%8d%e3%81%a8%e3%81%af%ef%bc%9f","status":"publish","type":"post","link":"http:\/\/www.code-magagine.com\/?p=10042","title":{"rendered":"\u3010JavaScript\u3011\u300c\u72b6\u614b\u7ba1\u7406\u300d\u3084\u300cFlux\u300d\u3068\u306f\uff1f"},"content":{"rendered":"<h2>\u72b6\u614b\u3068\u306f\uff1f<\/h2>\n<p><span style=\"color: #ff0000;\"><strong>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30c7\u30fc\u30bf<\/strong><\/span>\u306e\u3053\u3068\u3067\u3059\u3002\u30e6\u30fc\u30b6\u30fc\u306e\u64cd\u4f5c\u3084\u30a4\u30d9\u30f3\u30c8\u767a\u751f\u306b\u3088\u308a\u5024\u304c\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306b\u66f4\u65b0\u3055\u308c\u3066\u3044\u304d\u307e\u3059\u3002\u72b6\u614b\u306e\u4f8b\u3068\u3057\u3066\u306f\u4e0b\u8a18\u3067\u3059\u3002<\/p>\n<ul>\n<li>EC\u30b5\u30a4\u30c8\u306e\u30b7\u30e7\u30c3\u30d4\u30f3\u30b0\u30ab\u30fc\u30c8\u306e\u5546\u54c1<\/li>\n<\/ul>\n<h2>\u30c7\u30fc\u30bf\u30d5\u30ed\u30fc\u3068\u306f\uff1f<\/h2>\n<p><span style=\"color: #ff0000;\"><strong>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u304c\u6301\u3064\u30c7\u30fc\u30bf\u306e\u6d41\u308c<\/strong><\/span>\u306e\u3053\u3068\u3067\u3059\u3002<span style=\"color: #ff0000;\"><strong>\u300c\u3069\u3053\u306b\u30c7\u30fc\u30bf\u3092\u4fdd\u6301\u3057\u30c7\u30fc\u30bf\u3092\u3069\u306e\u3088\u3046\u306b\u66f4\u65b0\u3057\u3066\u3044\u304f\u306e\u304b\u300d<\/strong><\/span>\u3068\u3044\u3046\u8a2d\u8a08\u304c\u91cd\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h2>Flux<\/h2>\n<p>\u30c7\u30fc\u30bf\u30d5\u30ed\u30fc\u306b\u306f\u8a2d\u8a08\u30d1\u30bf\u30fc\u30f3\u304c\u3042\u308a\u3001Facebook\u304c\u63d0\u5531\u3057\u3066\u3044\u308bFlux\u304c\u6709\u540d\u3067\u3059\u3002\u30c7\u30fc\u30bf\u30d5\u30ed\u30fc\u306f\u5358\u4e00\u65b9\u5411\u306e\u307f\u3068\u306a\u3063\u3066\u3044\u307e\u3059\u3002\u73fe\u5728\u306eVuex\u3092\u306f\u3058\u3081\u3068\u3059\u308b\u72b6\u614b\u7ba1\u7406\u30e9\u30a4\u30d6\u30e9\u30ea\u306f\u3001\u3053\u306eFlux\u306e\u8003\u3048\u65b9\u3092\u591a\u304f\u53d6\u308a\u8fbc\u3093\u3067\u3044\u307e\u3059\u3002<\/p>\n<h3>Flux\u306e\u7279\u5fb4<\/h3>\n<ul>\n<li><span style=\"color: #ff0000;\"><strong>\u5358\u65b9\u5411\u30c7\u30fc\u30bf\u30d5\u30ed\u30fc<\/strong><\/span>\u3067\u5b9f\u88c5\u3059\u308b\u969b\u306b\u9078\u629e\u80a2\u304c\u9650\u3089\u308c\u3066\u3044\u3066\u7406\u89e3\u304c\u7c21\u5358\u306a\u30b3\u30fc\u30c9\u306b\u306a\u308a\u3084\u3059\u3044\u3002<\/li>\n<li><span style=\"color: #ff0000;\"><strong>\u30ab\u30d7\u30bb\u30eb\u5316<\/strong><\/span>\u3055\u308c\u3066\u304a\u308a\u5f71\u97ff\u304c\u5c11\u306a\u304f\u306a\u308a\u4fdd\u5b88\u4f5c\u696d\u304c\u5bb9\u6613\u306b\u306a\u308b\u3002<\/li>\n<\/ul>\n<h3>Flux\u306e\u6982\u5ff5\u56f3<\/h3>\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-medium wp-image-10041\" src=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2020\/04\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2020-04-12-14.32.05-300x152.png\" alt=\"\" width=\"300\" height=\"152\" srcset=\"http:\/\/www.code-magagine.com\/wp-content\/uploads\/2020\/04\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2020-04-12-14.32.05-300x152.png 300w, http:\/\/www.code-magagine.com\/wp-content\/uploads\/2020\/04\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2020-04-12-14.32.05-768x390.png 768w, http:\/\/www.code-magagine.com\/wp-content\/uploads\/2020\/04\/\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8-2020-04-12-14.32.05.png 938w\" sizes=\"(max-width: 300px) 100vw, 300px\" \/><\/p>\n<h4>Action<\/h4>\n<p>\u72b6\u614b\u306e\u66f4\u65b0\u3092\u884c\u3046\u30c7\u30fc\u30bf\u306e\u3053\u3068\u3067\u3059\u3002View\u306a\u3069\u304b\u3089\u767a\u706b\u3059\u308b\u30a4\u30d9\u30f3\u30c8(\u30dc\u30bf\u30f3\u3092\u62bc\u3059\u3002\u30da\u30fc\u30b8\u3092\u8aad\u307f\u8fbc\u3080\u306a\u3069\uff09<\/p>\n<h4>Dispatcher<\/h4>\n<p>Action\u3068\u3044\u3046\u30c7\u30fc\u30bf\u3092\u5143\u306b\u72b6\u614b\u306e\u66f4\u65b0\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<h4>Store<\/h4>\n<p>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5168\u4f53\u306e\u30c7\u30fc\u30bf\u3084\u30d3\u30b8\u30cd\u30b9\u30ed\u30b8\u30c3\u30af\u3092\u6301\u3061\u307e\u3059\u3002\u72b6\u614b\u306e\u53d6\u5f97\u3092\u884c\u3044View\u306b\u6e21\u3057\u307e\u3059\u3002<\/p>\n<h4>View<\/h4>\n<p>\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u8868\u793a\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<h2>Flux\u306e\u5f71\u97ff\u3092\u53d7\u3051\u305f\u30e9\u30a4\u30d6\u30e9\u30ea<\/h2>\n<p>\u3055\u307e\u3056\u307e\u306a\u30e9\u30a4\u30d6\u30e9\u30ea\u304cFlux\u306e\u5f71\u97ff\u3092\u53d7\u3051\u3066\u3044\u307e\u3059\u3002<\/p>\n<ul>\n<li>Redux<\/li>\n<li>Flux(Facebook\u793e\u306b\u3088\u308b\u53c2\u8003\u5b9f\u88c5)<\/li>\n<li>MobX<\/li>\n<li>Almin<\/li>\n<\/ul>\n<h2>MVVM\u3068\u306e\u6bd4\u8f03<\/h2>\n<p>MVVM\u306f\u30d3\u30e5\u30fc(\u30e2\u30c7\u30eb)\u3068\u30ed\u30b8\u30c3\u30af(\u30d3\u30e5\u30fc\u30e2\u30c7\u30eb)\u3092\u5206\u96e2\u3059\u308b\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u306b\u306a\u308a\u307e\u3059\u3002\u6628\u4eca\u306eUI\u306b\u306f\u30a4\u30d9\u30f3\u30c8\u3084\u3001\u72b6\u614b\u3001API\u306b\u3088\u308b\u975e\u540c\u671f\u30ea\u30af\u30a8\u30b9\u30c8\u306a\u3069\u306e\u51e6\u7406\u304c\u591a\u3044\u3067\u3059\u3002<\/p>\n<p>\u305d\u308c\u306b\u4f34\u3044MVVM\u3067\u306f\u53cc\u65b9\u5411\u306b\u30c7\u30fc\u30bf\u3092\u3084\u308a\u53d6\u308a\u3059\u308b\u3053\u3068\u3092\u76ee\u7684\u3068\u3057\u3066\u304a\u308a\u3001\u30d3\u30e5\u30fc\u30e2\u30c7\u30eb\u306e\u30ed\u30b8\u30c3\u30af\u304c\u80a5\u5927\u5316\u3001\u8907\u96d1\u5316\u3057\u3066\u3057\u307e\u3046\u3053\u3068\u3067\u5b9f\u88c5\u30e1\u30f3\u30c6\u30ca\u30f3\u30b9\u4e0a\u306b\u8ab2\u984c\u304c\u751f\u3058\u308b\u6848\u4ef6\u304c\u591a\u3044\u3067\u3059\u3002<\/p>\n<p>Flux\u306f\u3001\u4e00\u65b9\u5411\u306b\u30c7\u30fc\u30bf\u3092\u3084\u308a\u53d6\u308a\u3057\u307e\u3059\u3002\u307e\u305f\u3001View\u306b\u306fAction(Event)\u3060\u3051\u3092\u6301\u305f\u305b\u3066\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u5168\u4f53\u3092\u30a4\u30d9\u30f3\u30c8\u30c8\u30ea\u30d6\u30f3\u306a\u8a2d\u8a08\u306b\u3059\u308b\u3053\u3068\u304c\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>Flux\u3092\u5c0e\u5165\u3059\u308b\u3053\u3068\u3067\u3001View\u3084ViewModel\u304b\u3089\u72b6\u614b\u7ba1\u7406\u306e\u30b3\u30fc\u30c9\u3092\u5206\u96e2\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u308b\u306e\u3067\u3001\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u304c\u3059\u3063\u304d\u308a\u3057\u3066\u4fdd\u5b88\u6027\u304c\u304b\u306a\u308a\u5411\u4e0a\u3057\u307e\u3059\u3002\uff08\u3082\u3057\u3001MVVM\u306e\u307e\u307e\u3060\u3068ViewModel\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u3092\u4fee\u6b63\u3059\u308b\u3068View\u306e\u30bd\u30fc\u30b9\u3082\u5909\u66f4\u3059\u308b\u5fc5\u8981\u304c\u767a\u751f\u3057\u3066\u304d\u307e\u3059\u3002\uff09<\/p>\n","protected":false},"excerpt":{"rendered":"\u72b6\u614b\u3068\u306f\uff1f \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u30c7\u30fc\u30bf\u306e\u3053\u3068\u3067\u3059\u3002\u30e6\u30fc\u30b6\u30fc\u306e\u64cd\u4f5c\u3084\u30a4\u30d9\u30f3\u30c8\u767a\u751f\u306b\u3088\u308a\u5024\u304c\u30ea\u30a2\u30eb\u30bf\u30a4\u30e0\u306b\u66f4\u65b0\u3055\u308c\u3066\u3044\u304d\u307e\u3059\u3002\u72b6\u614b\u306e\u4f8b\u3068\u3057\u3066\u306f\u4e0b\u8a18\u3067\u3059\u3002 EC\u30b5\u30a4\u30c8\u306e\u30b7\u30e7\u30c3\u30d4\u30f3\u30b0\u30ab\u30fc\u30c8\u306e\u5546\u54c1 \u30c7\u30fc\u30bf\u30d5\u30ed\u30fc\u3068\u306f\uff1f \u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7 [&hellip;]","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[16],"tags":[],"_links":{"self":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/10042"}],"collection":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10042"}],"version-history":[{"count":8,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/10042\/revisions"}],"predecessor-version":[{"id":19499,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=\/wp\/v2\/posts\/10042\/revisions\/19499"}],"wp:attachment":[{"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10042"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10042"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.code-magagine.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10042"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}