{"id":1551,"date":"2017-04-13T11:55:48","date_gmt":"2017-04-13T02:55:48","guid":{"rendered":"http:\/\/lovelinux.mydns.jp\/?p=1551"},"modified":"2017-04-13T11:55:48","modified_gmt":"2017-04-13T02:55:48","slug":"rails5-0-%e3%81%ab-react%e3%80%81redux%e3%82%92%e5%b0%8e%e5%85%a5%e3%81%97%e3%81%a6%e3%80%81redux%e6%9c%ac%e5%ae%b6%e3%81%aetodo%e3%82%b5%e3%83%b3%e3%83%97%e3%83%ab%e3%82%92%e5%8b%95%e3%81%8b-2","status":"publish","type":"post","link":"https:\/\/lovelinux.mydns.jp\/?p=1551","title":{"rendered":"Rails5.0 \u306b React\u3001Redux\u3092\u5c0e\u5165\u3057\u3066\u3001Redux\u672c\u5bb6\u306eTodo\u30b5\u30f3\u30d7\u30eb\u3092\u52d5\u304b\u3059"},"content":{"rendered":"<h3>\u306f\u3058\u3081\u306b<\/h3>\n<p>Rails\u3068React\u3001Redux\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u30a2\u30d7\u30ea\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306e\u6e96\u5099\u624b\u9806\u3092Redux\u672c\u5bb6\u306eTodo\u30b5\u30f3\u30d7\u30eb\u3092\u4f7f\u3063\u3066\u793a\u3057\u3066\u307f\u307e\u3059\u3002<br \/>\nReact\u3001Redux\u306fnpm\uff08node_modules\uff09\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3082\u306e\u3092\u4f7f\u3046\u3053\u3068\u3068\u3057\u307e\u3059\u3002<\/p>\n<p>\u6700\u7d42\u7684\u306b\u52d5\u3044\u305f\u5f62\u306e\u30a4\u30e1\u30fc\u30b8\u306f\u3053\u3093\u306a\u611f\u3058\u3002<br \/>\n<a href=\"http:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2017\/04\/redux-11.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2017\/04\/redux-11.png\" alt=\"redux-11\" width=\"511\" height=\"276\" class=\"alignnone size-full wp-image-1419\" srcset=\"https:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2017\/04\/redux-11.png 511w, https:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2017\/04\/redux-11-300x162.png 300w\" sizes=\"auto, (max-width: 511px) 100vw, 511px\" \/><\/a><\/p>\n<p>\u6700\u7d42\u7684\u306a\u30bd\u30fc\u30b9\u30c4\u30ea\u30fc\u306f\u3053\u3093\u306a\u611f\u3058<br \/>\n<a href=\"http:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2017\/04\/redux-10.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2017\/04\/redux-10-215x1024.png\" alt=\"redux-10\" width=\"215\" height=\"1024\" class=\"alignnone size-large wp-image-1418\" srcset=\"https:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2017\/04\/redux-10-215x1024.png 215w, https:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2017\/04\/redux-10-63x300.png 63w, https:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2017\/04\/redux-10.png 316w\" sizes=\"auto, (max-width: 215px) 100vw, 215px\" \/><\/a><\/p>\n<h3>Rails\u30a2\u30d7\u30ea\u306e\u65b0\u898f\u4f5c\u6210\u3001React\u5c0e\u5165<\/h3>\n<p>[bash]<br \/>\n$ rails new rails_redux<\/p>\n<p>$ cd rails_redux\/<br \/>\n$ nano Gemfile<br \/>\n[\/bash]<\/p>\n<h4>\u8db3\u308a\u306a\u3044Gem\u30923\u3064\u8ffd\u52a0\u3057\u3066\u3001bundle install<\/h4>\n<p>\u672b\u5c3e\u306b\u8ffd\u8a18<\/p>\n<p>[bash]<\/p>\n<p>+ gem &#8216;therubyracer&#8217;, platforms: :ruby<br \/>\n+ gem &#8216;react-rails&#8217;<br \/>\n+ gem &#8216;browserify-rails&#8217;<br \/>\n[\/bash]<\/p>\n<p>bundle install<\/p>\n<p>[bash]<br \/>\n$ bundle install<br \/>\n[\/bash]<\/p>\n<h3>application.rb\u3092\u7de8\u96c6<\/h3>\n<p>\u4f5c\u3063\u305f ES6\uff08JavaScript\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\uff09\u306e\u30bd\u30fc\u30b9\u3092ES5\u306b\u81ea\u52d5\u5909\u63db\u3059\u308b\u305f\u3081\u306e\u8a2d\u5b9a\u3092\u8ffd\u8a18<br \/>\nconfig.browserify_rails\u3000\u306e\u884c\u3092\u8ffd\u52a0<\/p>\n<p>config\/application.rb<br \/>\n[bash]<br \/>\nrequire_relative &#8216;boot&#8217;<\/p>\n<p>require &#8216;rails\/all&#8217;<\/p>\n<p># Require the gems listed in Gemfile, including any gems<br \/>\n# you&#8217;ve limited to :test, :development, or :production.<br \/>\nBundler.require(*Rails.groups)<\/p>\n<p>module RailsRedux<br \/>\n  class Application < Rails::Application\n    # Settings in config\/environments\/* take precedence over those specified here.\n    # Application configuration should go into files in config\/initializers\n    # -- all .rb files in that directory are automatically loaded.\n+    config.browserify_rails.commandline_options = '-t babelify'\n  end\nend\n\n\n[\/bash]\n\n\n\n<h3>Rails \u306b React\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n<p>[bash]<br \/>\n$ rails g react:install<br \/>\n[\/bash]<\/p>\n<h3>application.js\u306e\u7de8\u96c6<\/h3>\n<p>app\/assets\/javascripts\/application.js<\/p>\n<p>\u30fbReact\u306f npm\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3082\u306e\u3092\u4f7f\u3046\u306e\u3067\u30ab\u30c3\u30c8\u3002<br \/>\n\u30fbrequire_tree . \u3082\u30ab\u30c3\u30c8<\/p>\n<p>\u5909\u66f4\u524d<br \/>\n[bash]<br \/>\n\/\/= require jquery<br \/>\n\/\/= require jquery_ujs<br \/>\n\/\/= require turbolinks<br \/>\n\/\/= require react<br \/>\n\/\/= require react_ujs<br \/>\n\/\/= require components<br \/>\n\/\/= require_tree .<br \/>\n[\/bash]<\/p>\n<p>\u5909\u66f4\u5f8c<\/p>\n<p>[bash]<br \/>\n\/\/= require jquery<br \/>\n\/\/= require jquery_ujs<br \/>\n\/\/= require turbolinks<br \/>\n\/\/= require react_ujs<br \/>\n\/\/= require components<br \/>\n[\/bash]<\/p>\n<h3>React\u3001Redux\u3001etc&#8230;\u306e\u6e96\u5099(node_modules\uff09<\/h3>\n<p>React\u3001Redux\u305d\u306e\u4ed6\u8af8\u3005\u3092 npm \u3092\u4f7f\u3063\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<p>[bash]<br \/>\n$ npm init -y<br \/>\n$ npm install &#8211;save-dev browserify browserify-incremental babelify babel-preset-es2015 babel-preset-react<\/p>\n<p>$ npm install &#8211;save react react-dom react-redux redux redux-thunk<\/p>\n<p>[\/bash]<\/p>\n<h3>.babelrc \u30d5\u30a1\u30a4\u30eb\u3092Rails\u306e\u30eb\u30fc\u30c8\u30d5\u30a9\u30eb\u30c0\u306b\u4f5c\u6210<\/h3>\n<p>[bash]<br \/>\n{<br \/>\n  &#8220;presets&#8221;: [&#8220;es2015&#8221;, &#8220;react&#8221;]<br \/>\n}<br \/>\n[\/bash]<\/p>\n<h3>Redux\u306e\u6a19\u6e96\u7684\u306a\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210<\/h3>\n<p>[bash]<br \/>\n$ cd app\/assets\/javascripts\/<br \/>\n$ mkdir actions containers reducers<\/p>\n<p>[\/bash]<\/p>\n<h3>components.js\u7de8\u96c6<\/h3>\n<p>app\/assets\/javascripts\/components.js<\/p>\n<p>todos.js\u306f\u30a2\u30d7\u30ea\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u30dd\u30a4\u30f3\u30c8\u3068\u306a\u308bJS\u30d5\u30a1\u30a4\u30eb\u3067\u3059\u3002\u3053\u3053\u306b\u5b9a\u7fa9\u3057\u305f\u30af\u30e9\u30b9\u540d\uff08const\u5ba3\u8a00\uff09\u3092<br \/>\nwindow\u306e\u4e0b\u306b\u30bb\u30c3\u30c8\uff08\u5909\u6570\u3068\u3057\u3066\u516c\u958b\uff09\u3057\u3066\u3084\u308b\u3002<br \/>\n\uff08\u610f\u5473\u306f\u3044\u307e\u3044\u3061\u7406\u89e3\u3067\u304d\u3066\u3044\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u5fc5\u9808\u307f\u305f\u3044\u3067\u3059\uff09<\/p>\n<p>\u5909\u66f4\u524d<br \/>\n[bash]<br \/>\n\/\/= require_tree .\/components<br \/>\n[\/bash]<\/p>\n<p>\u5909\u66f4\u5f8c<br \/>\n[bash]<br \/>\nwindow.React = require(&#8216;react&#8217;);<br \/>\nwindow.ReactDOM = require(&#8216;react-dom&#8217;);<br \/>\nwindow.Todos = require(&#8216;.\/todos.js&#8217;);<br \/>\n[\/bash]<\/p>\n<h3>Redux\u672c\u5bb6\u306eTodo\u30b5\u30f3\u30d7\u30eb\u3092\u79fb\u690d<\/h3>\n<p>\u3053\u3053\u304b\u3089\u306f <a href=\"http:\/\/redux.js.org\/docs\/basics\/ExampleTodoList.html\">redux\u672c\u5bb6\u306eTodo\u30a2\u30d7\u30ea\u306e\u30bd\u30fc\u30b9<\/a>\u3092\u30b3\u30d4\u30fc\u30a2\u30f3\u30c9\u30da\u30fc\u30b9\u30c8\u3067\u3059\u3002<\/p>\n<h4>\u30a8\u30f3\u30c8\u30ea\u30fc\u30dd\u30a4\u30f3\u30c8\u306eJS\u8abf\u6574<\/h4>\n<p>\u30a8\u30f3\u30c8\u30ea\u30fc\u30dd\u30a4\u30f3\u30c8\u3068\u306a\u308b(Entry Point) index.js\u306f todos.js\u3068\u3044\u3046\u540d\u524d\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u4f5c\u6210\u3057\u307e\u3059\u3002<\/p>\n<p>app\/assets\/javascripts\/todos.js<\/p>\n<p>[bash]<br \/>\nimport React, { Component } from &#8216;react&#8217;<br \/>\nimport { render } from &#8216;react-dom&#8217;<br \/>\nimport { Provider } from &#8216;react-redux&#8217;<br \/>\nimport { createStore } from &#8216;redux&#8217;<br \/>\nimport todo from &#8216;.\/reducers&#8217;<br \/>\nimport App from &#8216;.\/components\/App&#8217;<\/p>\n<p>let store = createStore(todo)<\/p>\n<p>const Todos = ({}) => {<br \/>\n  return (<br \/>\n    <Provider store={store}><br \/>\n      <App \/><br \/>\n    <\/Provider><br \/>\n  )<br \/>\n}<\/p>\n<p>export default Todos<\/p>\n<p>[\/bash]<\/p>\n<h4>\u305d\u306e\u4ed6\u306e\u30d5\u30a1\u30a4\u30eb\u7fa4\u306e\u30b3\u30d4\u30da<\/h4>\n<p>\u305d\u306e\u4ed6\u306e\u30d5\u30a1\u30a4\u30eb\u306f\u540c\u3058\u30d1\u30b9\u3067\u3001\u5168\u304f\u540c\u3058\u5185\u5bb9\u3067\u30ac\u30ea\u30ac\u30ea\u30b3\u30d4\u30da\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>\u51fa\u6765\u4e0a\u304c\u308a\u306e\u30d5\u30a1\u30a4\u30eb\u30c4\u30ea\u30fc\u306f\u3053\u3093\u306a\u611f\u3058\u3067\u3059\u3002<br \/>\n<a href=\"http:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2017\/04\/redux-12.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2017\/04\/redux-12.png\" alt=\"redux-12\" width=\"309\" height=\"723\" class=\"alignnone size-full wp-image-1420\" srcset=\"https:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2017\/04\/redux-12.png 309w, https:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2017\/04\/redux-12-128x300.png 128w\" sizes=\"auto, (max-width: 309px) 100vw, 309px\" \/><\/a><\/p>\n<h3>Rails\u3067\u30c6\u30b9\u30c8\u7528\u30b3\u30f3\u30c8\u30ed\u30fc\u30e9\u30fc\u3068\u30d3\u30e5\u30fc\u3092\u4f5c\u6210<\/h3>\n<p>[bash]<br \/>\n$ rails g controller todos index<br \/>\n[\/bash]<\/p>\n<h4>\u30d3\u30e5\u30fc\u306e\u8abf\u6574<\/h4>\n<p>1\u884c React\u306eTodo\u30a2\u30d7\u30ea\u306e\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u3092\u4f5c\u308b\u90e8\u5206\u3092\u8ffd\u8a18\u3057\u307e\u3059\u3002<br \/>\napp\/views\/todos\/index.html.erb<\/p>\n<p>[bash]<\/p>\n<h1>Todos#index<\/h1>\n<p>Find me in app\/views\/todos\/index.html.erb<\/p>\n<p>+ <%= react_component('Todos') %><\/p>\n<p>[\/bash]<\/p>\n<h3>\u52d5\u4f5c\u78ba\u8a8d<\/h3>\n<p>[bash]<br \/>\n$ cd Rails\u306e\u30eb\u30fc\u30c8\u30d5\u30a9\u30eb\u30c0<br \/>\n$ rails s<\/p>\n<p>[\/bash]<\/p>\n<p>\u30d6\u30e9\u30a6\u30b6\u30fc\u3067\u4ee5\u4e0b\u306eURL\u3078\u30a2\u30af\u30bb\u30b9\u3057\u3001\u3053\u3093\u306a\u611f\u3058\u306b\u8868\u793a\u3055\u308c\u308c\u3070\u6210\u529f<\/p>\n<p>http:\/\/localhost:3000\/todos\/index<\/p>\n<p><a href=\"http:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2017\/04\/redux-11.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2017\/04\/redux-11.png\" alt=\"redux-11\" width=\"511\" height=\"276\" class=\"alignnone size-full wp-image-1419\" srcset=\"https:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2017\/04\/redux-11.png 511w, https:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2017\/04\/redux-11-300x162.png 300w\" sizes=\"auto, (max-width: 511px) 100vw, 511px\" \/><\/a><\/p>\n<p>\u4ee5\u4e0a<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u306f\u3058\u3081\u306b Rails\u3068React\u3001Redux\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u30a2\u30d7\u30ea\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306e\u6e96\u5099\u624b\u9806\u3092Redux\u672c\u5bb6\u306eTodo\u30b5\u30f3\u30d7\u30eb\u3092\u4f7f\u3063\u3066\u793a\u3057\u3066\u307f\u307e\u3059\u3002 React\u3001Redux\u306fnpm\uff08node_modules\uff09\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3082\u306e\u3092\u4f7f\u3046\u3053\u3068\u3068\u3057\u307e\u3059\u3002 \u6700\u7d42\u7684\u306b\u52d5\u3044\u305f\u5f62\u306e\u30a4\u30e1\u30fc\u30b8\u306f\u3053\u3093\u306a\u611f\u3058\u3002 \u6700\u7d42\u7684\u306a\u30bd\u30fc\u30b9\u30c4\u30ea\u30fc\u306f\u3053\u3093\u306a\u611f\u3058 Rails\u30a2\u30d7\u30ea\u306e\u65b0\u898f\u4f5c\u6210\u3001React\u5c0e\u5165 [bash] $ rails new rails_redux $ cd rails_redux\/ $ nano Gemfile [\/bash] \u8db3\u308a\u306a\u3044Gem\u30923\u3064\u8ffd\u52a0\u3057\u3066\u3001bundle install \u672b\u5c3e\u306b\u8ffd\u8a18 [bash] + gem &#8216;therubyracer&#8217;, platforms: :ruby + gem &#8216;react-rails&#8217; + gem &#8216;browserify-rails&#8217; [\/bash] bundle install [bash] $ bundle install [\/bash] application.rb\u3092\u7de8\u96c6 \u4f5c\u3063\u305f ES6\uff08JavaScript\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\uff09\u306e\u30bd\u30fc\u30b9\u3092ES5\u306b\u81ea\u52d5\u5909\u63db\u3059\u308b\u305f\u3081\u306e\u8a2d\u5b9a\u3092\u8ffd\u8a18 config.browserify_rails\u3000\u306e\u884c\u3092\u8ffd\u52a0 config\/application.rb [bash] require_relative &#8216;boot&#8217; require &#8216;rails\/all&#8217; # Require the gems listed in Gemfile, including any gems # you&#8217;ve limited to :test, :development, or :production. Bundler.require(*Rails.groups) module RailsRedux class Application < Rails::Application # Settings in config\/environments\/* take precedence over those specified here. # Application configuration should go into files in config\/initializers # -- all .rb files in that directory are automatically loaded. + config.browserify_rails.commandline_options = '-t babelify' end end [\/bash] Rails \u306b React\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb [bash] $ rails g react:install [\/bash] application.js\u306e\u7de8\u96c6 app\/assets\/javascripts\/application.js \u30fbReact\u306f npm\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3082\u306e\u3092\u4f7f\u3046\u306e\u3067\u30ab\u30c3\u30c8\u3002 \u30fbrequire_tree . \u3082\u30ab\u30c3\u30c8 \u5909\u66f4\u524d [bash] \/\/= require jquery \/\/= require jquery_ujs \/\/= require turbolinks \/\/= require react \/\/= require react_ujs \/\/= require components \/\/= require_tree . [\/bash] \u5909\u66f4\u5f8c [bash] \/\/= require jquery \/\/= require jquery_ujs \/\/= require turbolinks \/\/= require react_ujs \/\/= require components [\/bash] React\u3001Redux\u3001etc&#8230;\u306e\u6e96\u5099(node_modules\uff09 React\u3001Redux\u305d\u306e\u4ed6\u8af8\u3005\u3092 npm \u3092\u4f7f\u3063\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002 [bash] $ npm init -y $ npm install &#8211;save-dev browserify browserify-incremental babelify babel-preset-es2015 babel-preset-react $ npm install &#8211;save react react-dom react-redux redux redux-thunk [\/bash] .babelrc \u30d5\u30a1\u30a4\u30eb\u3092Rails\u306e\u30eb\u30fc\u30c8\u30d5\u30a9\u30eb\u30c0\u306b\u4f5c\u6210 [bash] { &#8220;presets&#8221;: [&#8220;es2015&#8221;, &#8220;react&#8221;] } [\/bash] Redux\u306e\u6a19\u6e96\u7684\u306a\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210 [bash] $ cd app\/assets\/javascripts\/ $ mkdir actions containers reducers [\/bash] components.js\u7de8\u96c6 app\/assets\/javascripts\/components.js todos.js\u306f\u30a2\u30d7\u30ea\u306e\u30a8\u30f3\u30c8\u30ea\u30fc\u30dd\u30a4\u30f3\u30c8\u3068\u306a\u308bJS\u30d5\u30a1\u30a4\u30eb\u3067\u3059\u3002\u3053\u3053\u306b\u5b9a\u7fa9\u3057\u305f\u30af\u30e9\u30b9\u540d\uff08const\u5ba3\u8a00\uff09\u3092 window\u306e\u4e0b\u306b\u30bb\u30c3\u30c8\uff08\u5909\u6570\u3068\u3057\u3066\u516c\u958b\uff09\u3057\u3066\u3084\u308b\u3002 \uff08\u610f\u5473\u306f\u3044\u307e\u3044\u3061\u7406\u89e3\u3067\u304d\u3066\u3044\u306a\u3044\u306e\u3067\u3059\u304c\u3001\u5fc5\u9808\u307f\u305f\u3044\u3067\u3059\uff09 \u5909\u66f4\u524d [bash] \/\/= require_tree .\/components [\/bash] \u5909\u66f4\u5f8c [bash] window.React = require(&#8216;react&#8217;); window.ReactDOM = require(&#8216;react-dom&#8217;); window.Todos = require(&#8216;.\/todos.js&#8217;); [\/bash] Redux\u672c\u5bb6\u306eTodo\u30b5\u30f3\u30d7\u30eb\u3092\u79fb\u690d \u3053\u3053\u304b\u3089\u306f redux\u672c\u5bb6\u306eTodo\u30a2\u30d7\u30ea\u306e\u30bd\u30fc\u30b9\u3092\u30b3\u30d4\u30fc\u30a2\u30f3\u30c9\u30da\u30fc\u30b9\u30c8\u3067\u3059\u3002 \u30a8\u30f3\u30c8\u30ea\u30fc\u30dd\u30a4\u30f3\u30c8\u306eJS\u8abf\u6574 \u30a8\u30f3\u30c8\u30ea\u30fc\u30dd\u30a4\u30f3\u30c8\u3068\u306a\u308b(Entry Point) index.js\u306f todos.js\u3068\u3044\u3046\u540d\u524d\u3067\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u4f5c\u6210\u3057\u307e\u3059\u3002 app\/assets\/javascripts\/todos.js [bash] import React, { Component } from &#8216;react&#8217; import { render } from &#8216;react-dom&#8217; import { Provider } from &#8216;react-redux&#8217; import { createStore } from &#8216;redux&#8217; import todo from &#8216;.\/reducers&#8217; import App from &#8216;.\/components\/App&#8217; let store = createStore(todo) const Todos = ({}) => { return ( ) }&#8230;<\/p>\n","protected":false},"author":1,"featured_media":1425,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_uf_show_specific_survey":0,"_uf_disable_surveys":false,"footnotes":""},"categories":[6,77],"tags":[71,72,76],"class_list":{"0":"post-1551","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-rails","8":"category-react","9":"tag-rails","10":"tag-reactjs","11":"tag-redux"},"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.8 - aioseo.com -->\n\t<meta name=\"description\" content=\"Rails\u3068React\u3001Redux\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u30a2\u30d7\u30ea\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306e\u6e96\u5099\u624b\u9806\u3092Redux\u672c\u5bb6\u306eTodo\u30b5\u30f3\u30d7\u30eb\u3092\u4f7f\u3063\u3066\u793a\u3057\u3066\u307f\u307e\u3059\u3002 React\u3001Redux\u306fnpm\uff08node_modules\uff09\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3082\u306e\u3092\u4f7f\u3046\u3053\u3068\u3068\u3057\u307e\u3059\u3002\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"hiroshi\"\/>\n\t<meta name=\"google-site-verification\" content=\"fo5n0bjUdcitu1FsBTJqqwL580wBLhhCM51IEogDt9Y\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/lovelinux.mydns.jp\/?p=1551\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.8\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_GB\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Love Linux | enjoy using linux for programming flatform\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Rails5.0 \u306b React\u3001Redux\u3092\u5c0e\u5165\u3057\u3066\u3001Redux\u672c\u5bb6\u306eTodo\u30b5\u30f3\u30d7\u30eb\u3092\u52d5\u304b\u3059\" \/>\n\t\t<meta property=\"og:description\" content=\"Rails\u3068React\u3001Redux\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u30a2\u30d7\u30ea\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306e\u6e96\u5099\u624b\u9806\u3092Redux\u672c\u5bb6\u306eTodo\u30b5\u30f3\u30d7\u30eb\u3092\u4f7f\u3063\u3066\u793a\u3057\u3066\u307f\u307e\u3059\u3002 React\u3001Redux\u306fnpm\uff08node_modules\uff09\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3082\u306e\u3092\u4f7f\u3046\u3053\u3068\u3068\u3057\u307e\u3059\u3002\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/lovelinux.mydns.jp\/?p=1551\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2017-04-13T02:55:48+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2017-04-13T02:55:48+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Rails5.0 \u306b React\u3001Redux\u3092\u5c0e\u5165\u3057\u3066\u3001Redux\u672c\u5bb6\u306eTodo\u30b5\u30f3\u30d7\u30eb\u3092\u52d5\u304b\u3059\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Rails\u3068React\u3001Redux\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u30a2\u30d7\u30ea\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306e\u6e96\u5099\u624b\u9806\u3092Redux\u672c\u5bb6\u306eTodo\u30b5\u30f3\u30d7\u30eb\u3092\u4f7f\u3063\u3066\u793a\u3057\u3066\u307f\u307e\u3059\u3002 React\u3001Redux\u306fnpm\uff08node_modules\uff09\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3082\u306e\u3092\u4f7f\u3046\u3053\u3068\u3068\u3057\u307e\u3059\u3002\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?p=1551#article\",\"name\":\"Rails5.0 \\u306b React\\u3001Redux\\u3092\\u5c0e\\u5165\\u3057\\u3066\\u3001Redux\\u672c\\u5bb6\\u306eTodo\\u30b5\\u30f3\\u30d7\\u30eb\\u3092\\u52d5\\u304b\\u3059\",\"headline\":\"Rails5.0 \\u306b React\\u3001Redux\\u3092\\u5c0e\\u5165\\u3057\\u3066\\u3001Redux\\u672c\\u5bb6\\u306eTodo\\u30b5\\u30f3\\u30d7\\u30eb\\u3092\\u52d5\\u304b\\u3059\",\"author\":{\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?author=1#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/wp-content\\\/uploads\\\/2017\\\/04\\\/redux-13.png\",\"width\":567,\"height\":192},\"datePublished\":\"2017-04-13T11:55:48+09:00\",\"dateModified\":\"2017-04-13T11:55:48+09:00\",\"inLanguage\":\"en-GB\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?p=1551#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?p=1551#webpage\"},\"articleSection\":\"rails, React, rails, reactjs, redux\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?p=1551#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/lovelinux.mydns.jp\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?cat=2#listItem\",\"name\":\"\\u30d7\\u30ed\\u30b0\\u30e9\\u30df\\u30f3\\u30b0\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?cat=2#listItem\",\"position\":2,\"name\":\"\\u30d7\\u30ed\\u30b0\\u30e9\\u30df\\u30f3\\u30b0\",\"item\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?cat=2\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?cat=6#listItem\",\"name\":\"rails\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?cat=6#listItem\",\"position\":3,\"name\":\"rails\",\"item\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?cat=6\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?p=1551#listItem\",\"name\":\"Rails5.0 \\u306b React\\u3001Redux\\u3092\\u5c0e\\u5165\\u3057\\u3066\\u3001Redux\\u672c\\u5bb6\\u306eTodo\\u30b5\\u30f3\\u30d7\\u30eb\\u3092\\u52d5\\u304b\\u3059\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?cat=2#listItem\",\"name\":\"\\u30d7\\u30ed\\u30b0\\u30e9\\u30df\\u30f3\\u30b0\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?p=1551#listItem\",\"position\":4,\"name\":\"Rails5.0 \\u306b React\\u3001Redux\\u3092\\u5c0e\\u5165\\u3057\\u3066\\u3001Redux\\u672c\\u5bb6\\u306eTodo\\u30b5\\u30f3\\u30d7\\u30eb\\u3092\\u52d5\\u304b\\u3059\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?cat=6#listItem\",\"name\":\"rails\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?author=1#author\",\"url\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?author=1\",\"name\":\"hiroshi\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?p=1551#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/e7c5ca03ae8cd5b5d36ac0f62f59c26d34fd667afa57dafb4978790c04c5146f?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"hiroshi\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?p=1551#webpage\",\"url\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?p=1551\",\"name\":\"Rails5.0 \\u306b React\\u3001Redux\\u3092\\u5c0e\\u5165\\u3057\\u3066\\u3001Redux\\u672c\\u5bb6\\u306eTodo\\u30b5\\u30f3\\u30d7\\u30eb\\u3092\\u52d5\\u304b\\u3059\",\"description\":\"Rails\\u3068React\\u3001Redux\\u3092\\u7d44\\u307f\\u5408\\u308f\\u305b\\u3066\\u30a2\\u30d7\\u30ea\\u3092\\u69cb\\u7bc9\\u3059\\u308b\\u305f\\u3081\\u306e\\u6e96\\u5099\\u624b\\u9806\\u3092Redux\\u672c\\u5bb6\\u306eTodo\\u30b5\\u30f3\\u30d7\\u30eb\\u3092\\u4f7f\\u3063\\u3066\\u793a\\u3057\\u3066\\u307f\\u307e\\u3059\\u3002 React\\u3001Redux\\u306fnpm\\uff08node_modules\\uff09\\u3067\\u30a4\\u30f3\\u30b9\\u30c8\\u30fc\\u30eb\\u3057\\u305f\\u3082\\u306e\\u3092\\u4f7f\\u3046\\u3053\\u3068\\u3068\\u3057\\u307e\\u3059\\u3002\",\"inLanguage\":\"en-GB\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?p=1551#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?author=1#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?author=1#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/wp-content\\\/uploads\\\/2017\\\/04\\\/redux-13.png\",\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?p=1551\\\/#mainImage\",\"width\":567,\"height\":192},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/?p=1551#mainImage\"},\"datePublished\":\"2017-04-13T11:55:48+09:00\",\"dateModified\":\"2017-04-13T11:55:48+09:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/#website\",\"url\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/\",\"name\":\"Love Linux\",\"description\":\"enjoy using linux for programming flatform\",\"inLanguage\":\"en-GB\",\"publisher\":{\"@id\":\"https:\\\/\\\/lovelinux.mydns.jp\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Rails5.0 \u306b React\u3001Redux\u3092\u5c0e\u5165\u3057\u3066\u3001Redux\u672c\u5bb6\u306eTodo\u30b5\u30f3\u30d7\u30eb\u3092\u52d5\u304b\u3059","description":"Rails\u3068React\u3001Redux\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u30a2\u30d7\u30ea\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306e\u6e96\u5099\u624b\u9806\u3092Redux\u672c\u5bb6\u306eTodo\u30b5\u30f3\u30d7\u30eb\u3092\u4f7f\u3063\u3066\u793a\u3057\u3066\u307f\u307e\u3059\u3002 React\u3001Redux\u306fnpm\uff08node_modules\uff09\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3082\u306e\u3092\u4f7f\u3046\u3053\u3068\u3068\u3057\u307e\u3059\u3002","canonical_url":"https:\/\/lovelinux.mydns.jp\/?p=1551","robots":"max-image-preview:large","keywords":"","webmasterTools":{"google-site-verification":"fo5n0bjUdcitu1FsBTJqqwL580wBLhhCM51IEogDt9Y","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/lovelinux.mydns.jp\/?p=1551#article","name":"Rails5.0 \u306b React\u3001Redux\u3092\u5c0e\u5165\u3057\u3066\u3001Redux\u672c\u5bb6\u306eTodo\u30b5\u30f3\u30d7\u30eb\u3092\u52d5\u304b\u3059","headline":"Rails5.0 \u306b React\u3001Redux\u3092\u5c0e\u5165\u3057\u3066\u3001Redux\u672c\u5bb6\u306eTodo\u30b5\u30f3\u30d7\u30eb\u3092\u52d5\u304b\u3059","author":{"@id":"https:\/\/lovelinux.mydns.jp\/?author=1#author"},"publisher":{"@id":"https:\/\/lovelinux.mydns.jp\/#person"},"image":{"@type":"ImageObject","url":"https:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2017\/04\/redux-13.png","width":567,"height":192},"datePublished":"2017-04-13T11:55:48+09:00","dateModified":"2017-04-13T11:55:48+09:00","inLanguage":"en-GB","mainEntityOfPage":{"@id":"https:\/\/lovelinux.mydns.jp\/?p=1551#webpage"},"isPartOf":{"@id":"https:\/\/lovelinux.mydns.jp\/?p=1551#webpage"},"articleSection":"rails, React, rails, reactjs, redux"},{"@type":"BreadcrumbList","@id":"https:\/\/lovelinux.mydns.jp\/?p=1551#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/lovelinux.mydns.jp#listItem","position":1,"name":"Home","item":"https:\/\/lovelinux.mydns.jp","nextItem":{"@type":"ListItem","@id":"https:\/\/lovelinux.mydns.jp\/?cat=2#listItem","name":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"}},{"@type":"ListItem","@id":"https:\/\/lovelinux.mydns.jp\/?cat=2#listItem","position":2,"name":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","item":"https:\/\/lovelinux.mydns.jp\/?cat=2","nextItem":{"@type":"ListItem","@id":"https:\/\/lovelinux.mydns.jp\/?cat=6#listItem","name":"rails"},"previousItem":{"@type":"ListItem","@id":"https:\/\/lovelinux.mydns.jp#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/lovelinux.mydns.jp\/?cat=6#listItem","position":3,"name":"rails","item":"https:\/\/lovelinux.mydns.jp\/?cat=6","nextItem":{"@type":"ListItem","@id":"https:\/\/lovelinux.mydns.jp\/?p=1551#listItem","name":"Rails5.0 \u306b React\u3001Redux\u3092\u5c0e\u5165\u3057\u3066\u3001Redux\u672c\u5bb6\u306eTodo\u30b5\u30f3\u30d7\u30eb\u3092\u52d5\u304b\u3059"},"previousItem":{"@type":"ListItem","@id":"https:\/\/lovelinux.mydns.jp\/?cat=2#listItem","name":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0"}},{"@type":"ListItem","@id":"https:\/\/lovelinux.mydns.jp\/?p=1551#listItem","position":4,"name":"Rails5.0 \u306b React\u3001Redux\u3092\u5c0e\u5165\u3057\u3066\u3001Redux\u672c\u5bb6\u306eTodo\u30b5\u30f3\u30d7\u30eb\u3092\u52d5\u304b\u3059","previousItem":{"@type":"ListItem","@id":"https:\/\/lovelinux.mydns.jp\/?cat=6#listItem","name":"rails"}}]},{"@type":"Person","@id":"https:\/\/lovelinux.mydns.jp\/?author=1#author","url":"https:\/\/lovelinux.mydns.jp\/?author=1","name":"hiroshi","image":{"@type":"ImageObject","@id":"https:\/\/lovelinux.mydns.jp\/?p=1551#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/e7c5ca03ae8cd5b5d36ac0f62f59c26d34fd667afa57dafb4978790c04c5146f?s=96&d=mm&r=g","width":96,"height":96,"caption":"hiroshi"}},{"@type":"WebPage","@id":"https:\/\/lovelinux.mydns.jp\/?p=1551#webpage","url":"https:\/\/lovelinux.mydns.jp\/?p=1551","name":"Rails5.0 \u306b React\u3001Redux\u3092\u5c0e\u5165\u3057\u3066\u3001Redux\u672c\u5bb6\u306eTodo\u30b5\u30f3\u30d7\u30eb\u3092\u52d5\u304b\u3059","description":"Rails\u3068React\u3001Redux\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u30a2\u30d7\u30ea\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306e\u6e96\u5099\u624b\u9806\u3092Redux\u672c\u5bb6\u306eTodo\u30b5\u30f3\u30d7\u30eb\u3092\u4f7f\u3063\u3066\u793a\u3057\u3066\u307f\u307e\u3059\u3002 React\u3001Redux\u306fnpm\uff08node_modules\uff09\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3082\u306e\u3092\u4f7f\u3046\u3053\u3068\u3068\u3057\u307e\u3059\u3002","inLanguage":"en-GB","isPartOf":{"@id":"https:\/\/lovelinux.mydns.jp\/#website"},"breadcrumb":{"@id":"https:\/\/lovelinux.mydns.jp\/?p=1551#breadcrumblist"},"author":{"@id":"https:\/\/lovelinux.mydns.jp\/?author=1#author"},"creator":{"@id":"https:\/\/lovelinux.mydns.jp\/?author=1#author"},"image":{"@type":"ImageObject","url":"https:\/\/lovelinux.mydns.jp\/wp-content\/uploads\/2017\/04\/redux-13.png","@id":"https:\/\/lovelinux.mydns.jp\/?p=1551\/#mainImage","width":567,"height":192},"primaryImageOfPage":{"@id":"https:\/\/lovelinux.mydns.jp\/?p=1551#mainImage"},"datePublished":"2017-04-13T11:55:48+09:00","dateModified":"2017-04-13T11:55:48+09:00"},{"@type":"WebSite","@id":"https:\/\/lovelinux.mydns.jp\/#website","url":"https:\/\/lovelinux.mydns.jp\/","name":"Love Linux","description":"enjoy using linux for programming flatform","inLanguage":"en-GB","publisher":{"@id":"https:\/\/lovelinux.mydns.jp\/#person"}}]},"og:locale":"en_GB","og:site_name":"Love Linux | enjoy using linux for programming flatform","og:type":"article","og:title":"Rails5.0 \u306b React\u3001Redux\u3092\u5c0e\u5165\u3057\u3066\u3001Redux\u672c\u5bb6\u306eTodo\u30b5\u30f3\u30d7\u30eb\u3092\u52d5\u304b\u3059","og:description":"Rails\u3068React\u3001Redux\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u30a2\u30d7\u30ea\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306e\u6e96\u5099\u624b\u9806\u3092Redux\u672c\u5bb6\u306eTodo\u30b5\u30f3\u30d7\u30eb\u3092\u4f7f\u3063\u3066\u793a\u3057\u3066\u307f\u307e\u3059\u3002 React\u3001Redux\u306fnpm\uff08node_modules\uff09\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3082\u306e\u3092\u4f7f\u3046\u3053\u3068\u3068\u3057\u307e\u3059\u3002","og:url":"https:\/\/lovelinux.mydns.jp\/?p=1551","article:published_time":"2017-04-13T02:55:48+00:00","article:modified_time":"2017-04-13T02:55:48+00:00","twitter:card":"summary_large_image","twitter:title":"Rails5.0 \u306b React\u3001Redux\u3092\u5c0e\u5165\u3057\u3066\u3001Redux\u672c\u5bb6\u306eTodo\u30b5\u30f3\u30d7\u30eb\u3092\u52d5\u304b\u3059","twitter:description":"Rails\u3068React\u3001Redux\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u30a2\u30d7\u30ea\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306e\u6e96\u5099\u624b\u9806\u3092Redux\u672c\u5bb6\u306eTodo\u30b5\u30f3\u30d7\u30eb\u3092\u4f7f\u3063\u3066\u793a\u3057\u3066\u307f\u307e\u3059\u3002 React\u3001Redux\u306fnpm\uff08node_modules\uff09\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3082\u306e\u3092\u4f7f\u3046\u3053\u3068\u3068\u3057\u307e\u3059\u3002"},"aioseo_meta_data":{"post_id":"1551","title":"Rails5.0 \u306b React\u3001Redux\u3092\u5c0e\u5165\u3057\u3066\u3001Redux\u672c\u5bb6\u306eTodo\u30b5\u30f3\u30d7\u30eb\u3092\u52d5\u304b\u3059","description":"Rails\u3068React\u3001Redux\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u30a2\u30d7\u30ea\u3092\u69cb\u7bc9\u3059\u308b\u305f\u3081\u306e\u6e96\u5099\u624b\u9806\u3092Redux\u672c\u5bb6\u306eTodo\u30b5\u30f3\u30d7\u30eb\u3092\u4f7f\u3063\u3066\u793a\u3057\u3066\u307f\u307e\u3059\u3002\r\nReact\u3001Redux\u306fnpm\uff08node_modules\uff09\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u305f\u3082\u306e\u3092\u4f7f\u3046\u3053\u3068\u3068\u3057\u307e\u3059\u3002","keywords":[{"label":"rails","value":"rails"},{"label":"redux","value":"redux"},{"label":"todo","value":"todo"},{"label":"react","value":"react"}],"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2025-08-25 11:22:05","updated":"2025-08-25 11:22:05","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/lovelinux.mydns.jp\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/lovelinux.mydns.jp\/?cat=2\" title=\"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0\">\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/lovelinux.mydns.jp\/?cat=6\" title=\"rails\">rails<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tRails5.0 \u306b React\u3001Redux\u3092\u5c0e\u5165\u3057\u3066\u3001Redux\u672c\u5bb6\u306eTodo\u30b5\u30f3\u30d7\u30eb\u3092\u52d5\u304b\u3059\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/lovelinux.mydns.jp"},{"label":"\u30d7\u30ed\u30b0\u30e9\u30df\u30f3\u30b0","link":"https:\/\/lovelinux.mydns.jp\/?cat=2"},{"label":"rails","link":"https:\/\/lovelinux.mydns.jp\/?cat=6"},{"label":"Rails5.0 \u306b React\u3001Redux\u3092\u5c0e\u5165\u3057\u3066\u3001Redux\u672c\u5bb6\u306eTodo\u30b5\u30f3\u30d7\u30eb\u3092\u52d5\u304b\u3059","link":"https:\/\/lovelinux.mydns.jp\/?p=1551"}],"_links":{"self":[{"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts\/1551","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1551"}],"version-history":[{"count":1,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts\/1551\/revisions"}],"predecessor-version":[{"id":1552,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/posts\/1551\/revisions\/1552"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=\/wp\/v2\/media\/1425"}],"wp:attachment":[{"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1551"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1551"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lovelinux.mydns.jp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1551"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}