{"id":517,"date":"2017-08-19T14:27:05","date_gmt":"2017-08-19T05:27:05","guid":{"rendered":"http:\/\/www.typea.info\/blog\/index.php\/2017\/08\/19\/react_react_router_redux-saga_ajax\/"},"modified":"2017-08-19T14:27:05","modified_gmt":"2017-08-19T05:27:05","slug":"react_react_router_redux-saga_ajax","status":"publish","type":"post","link":"https:\/\/www.typea.info\/blog\/index.php\/2017\/08\/19\/react_react_router_redux-saga_ajax\/","title":{"rendered":"React \u306e\u5358\u7d14\u306a\u30b5\u30f3\u30d7\u30eb\u306b React Router \u3092\u7d44\u307f\u8fbc\u3093\u3060\u3082\u306e\u306b Redux-Saga \u3092\u9069\u7528\u3057\u305f\u3082\u306e\u304b\u3089Ajax\u901a\u4fe1\u3092\u7d44\u307f\u8fbc\u3080"},"content":{"rendered":"<p><a href=\"https:\/\/www.amazon.co.jp\/%E6%94%B9%E8%A8%82%E6%96%B0%E7%89%88JavaScript%E6%9C%AC%E6%A0%BC%E5%85%A5%E9%96%80-%E3%83%A2%E3%83%80%E3%83%B3%E3%82%B9%E3%82%BF%E3%82%A4%E3%83%AB%E3%81%AB%E3%82%88%E3%82%8B%E5%9F%BA%E7%A4%8E%E3%81%8B%E3%82%89%E7%8F%BE%E5%A0%B4%E3%81%A7%E3%81%AE%E5%BF%9C%E7%94%A8%E3%81%BE%E3%81%A7-%E5%B1%B1%E7%94%B0-%E7%A5%A5%E5%AF%9B\/dp\/477418411X\/ref=as_li_ss_il?s=books&amp;ie=UTF8&amp;qid=1503116085&amp;sr=1-3&amp;keywords=ES2015&amp;linkCode=li2&amp;tag=typea09-22&amp;linkId=066763722e9be57e4c0be5562eb8e190\" target=\"_blank\"><img decoding=\"async\" src=\"\/\/ws-fe.amazon-adsystem.com\/widgets\/q?_encoding=UTF8&amp;ASIN=477418411X&amp;Format=_SL160_&amp;ID=AsinImage&amp;MarketPlace=JP&amp;ServiceVersion=20070822&amp;WS=1&amp;tag=typea09-22\" border=\"0\" \/><\/a><img loading=\"lazy\" decoding=\"async\" width=\"1\" height=\"1\" style=\"margin: 0px !important; border: currentcolor !important; border-image: none !important;\" alt=\"\" src=\"https:\/\/ir-jp.amazon-adsystem.com\/e\/ir?t=typea09-22&amp;l=li2&amp;o=9&amp;a=477418411X\" border=\"0\" \/><\/p>\n<p>React \u306f View\u3057\u304b\u62c5\u5f53\u3057\u3066\u3044\u306a\u3044\u306e\u3067\u3001\u305d\u306e\u4ed6\u306e\u6a5f\u80fd\u3092\u542b\u3081\u305f\u30a2\u30d7\u30ea\u306e\u30b9\u30b1\u30eb\u30c8\u30f3\u4f5c\u6210\u3092\u76ee\u6307\u3059\u3002<\/p>\n<p>Node.js\u3001npm \u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u3001\u304a\u3088\u3073\u3001\u30d6\u30e9\u30a6\u30b6\u304c\u5bfe\u5fdc\u3057\u3066\u3044\u306a\u3044ECMAScript\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u5229\u7528\u306bBabel\u3092\u5229\u7528\u3059\u308b\u306a\u3069\u3092\u542b\u3081\u305f\u74b0\u5883\u69cb\u7bc9\u3001\u30da\u30fc\u30b8\u9077\u79fb\u306e\u305f\u3081\u306eReact Router\u3001\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u3068\u3057\u3066\u306eRedux\u3001\u975e\u540c\u671f\u51e6\u7406\u306e\u305f\u3081\u306eRedux-Saga \u3092\u3068\u308a\u3042\u3048\u305a\u3001\u6700\u4f4e\u9650\u306e\u30ec\u30d9\u30eb\u3067\u7d44\u307f\u5408\u308f\u305b\u305f\u3002<\/p>\n<ol>\n<li><a href=\"https:\/\/www.typea.info\/blog\/index.php\/2017\/08\/15\/react_1\">React \u958b\u767a\u306e\u5168\u4f53\u50cf\u3092\u628a\u63e1\u3057\u3064\u3064\u958b\u767a\u74b0\u5883\u3092\u6574\u3048\u308b<\/a><\/li>\n<li><a href=\"https:\/\/www.typea.info\/blog\/index.php\/2017\/08\/16\/react_router\">React \u306e\u5358\u7d14\u306a\u30b5\u30f3\u30d7\u30eb\u306b React Router \u3092\u9069\u7528\u3059\u308b<\/a><\/li>\n<li><a href=\"https:\/\/www.typea.info\/blog\/index.php\/2017\/08\/17\/react_react_router_redux-saga\">React \u306e\u5358\u7d14\u306a\u30b5\u30f3\u30d7\u30eb\u306b React Router \u3092\u7d44\u307f\u8fbc\u3093\u3060\u3082\u306e\u306b Redux-Saga \u3092\u9069\u7528\u3059\u308b<\/a><\/li>\n<\/ol>\n<p>\u6b21\u306f\u3001Ajax\u901a\u4fe1\u90e8\u5206\u3092\u7d44\u307f\u8fbc\u3080\u3002<\/p>\n<p><a href=\"http:\/\/qiita.com\/hashrock\/items\/3113690bb3de5bba639b\">jQuery.ajax\u306e\u4ee3\u308f\u308a\u306bSuperAgent\u3092\u4f7f\u3046<\/a><\/p>\n<p>Ajax \u306e\u90e8\u5206\u3060\u3051\u3092\u5229\u7528\u3059\u308b\u306e\u306b\u3001jQuery\u306f\u30aa\u30fc\u30d0\u30fc\u30b9\u30da\u30c3\u30af(\u304b\u3064\u5bb9\u91cf\u3092\u7121\u99c4\u306b\u6d88\u8cbb)\u3057\u3066\u3057\u307e\u3046\u305f\u3081\u3001HTTP\u901a\u4fe1\u306e\u7279\u5316\u3057\u305f\u3001<a href=\"https:\/\/visionmedia.github.io\/superagent\/\">SuperAgetnt<\/a> \u3092\u4f7f\u7528\u3059\u308b\u3053\u3068\u3068\u3059\u308b\u3002<\/p>\n<p>github : <a title=\"https:\/\/github.com\/pppiroto\/react_get_start.git\" href=\"https:\/\/github.com\/pppiroto\/react_get_start.git\">https:\/\/github.com\/pppiroto\/react_get_start.git<\/a><\/p>\n<h2>1.\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p><a href=\"https:\/\/visionmedia.github.io\/superagent\/\">SuperAgent<\/a><\/p>\n<pre class=\"prettyprint linenums\">npm install --save superagent<\/pre>\n<h2>2.\u5b9f\u88c5<\/h2>\n<h3>2.1 \u30c0\u30df\u30fcAPI\u306e\u7d50\u679c<\/h3>\n<p>\u307e\u305a\u306f\u3001\u758e\u901a\u3092\u3057\u305f\u3044\u3060\u3051\u306a\u306e\u3067\u3001API\u306e\u7d50\u679c\u3092\u60f3\u5b9a\u3057\u305f\u3001json \u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3059\u308b\u3002<\/p>\n<p><strong>\/hello_successurl.json<\/strong><\/p>\n<pre class=\"prettyprint linenums\">{\r\n    \"message\":\"HELLO FROM API\"\r\n}<\/pre>\n<h3>2.2 Action<\/h3>\n<p>\u4ee5\u4e0b\u306eAction\u3092\u8ffd\u52a0\u3059\u308b\u3002<\/p>\n<ul>\n<li>HELLO_API : \u4e0a\u8a18\u3067\u4f5c\u6210\u3057\u305f\u30c0\u30df\u30fcjson\u3092\u53d6\u5f97\u3059\u308b\u5834\u5408\u306b\u547c\u3073\u51fa\u3059<\/li>\n<li>HELLO_API_SUCCESS : \u53d6\u5f97\u304c\u6210\u529f\u3057\u305f\u5834\u5408\u306b\u547c\u3073\u51fa\u3059<\/li>\n<li>HELLO_API_FAIL : \u53d6\u5f97\u304c\u5931\u6557\u3057\u305f\u5834\u5408\u306b\u547c\u3073\u51fa\u3059<\/li>\n<\/ul>\n<p><strong>\/actions\/index.js<\/strong><\/p>\n<pre class=\"prettyprint linenums\">import { createAction } from 'redux-actions';\r\n\r\nexport const HELLO = 'HELLO';\r\nexport const HELLO_API = 'HELLO_API';\r\nexport const HELLO_API_SUCCESS = 'HELLO_API_SUCCESS';\r\nexport const HELLO_API_FAIL = 'HELLO_API_FAIL';\r\n\r\nexport const helloAction = createAction(HELLO);\r\nexport const helloApiAction = createAction(HELLO_API);\r\nexport const helloApiSuccessAction = createAction(HELLO_API_SUCCESS);\r\nexport const helloApiFailAction = createAction(HELLO_API_FAIL);<\/pre>\n<h2>2.3 Ajax API<\/h2>\n<ul>\n<li>Ajax \u901a\u4fe1\u3092\u884c\u3044\u3001\u30c7\u30fc\u30bf\u3092\u53d6\u5f97\u3059\u308b\u95a2\u6570\u3092\u4f5c\u6210\u3001\u3053\u3053\u3067\u3001<a href=\"https:\/\/visionmedia.github.io\/superagent\/\">SuperAgent<\/a>\u3092\u4f7f\u7528\u3059\u308b\u3002<\/li>\n<li>\u30c7\u30fc\u30bf\u306e\u975e\u540c\u671f\u53d6\u5f97\u306e\u305f\u3081\u306b\u3001Promise \u3092\u4f7f\u7528\u3059\u308b(Promise\u306b\u3064\u3044\u3066\u306f\u3001<a href=\"https:\/\/developer.mozilla.org\/ja\/docs\/Web\/JavaScript\/Reference\/Global_Objects\/Promise\">\u3053\u3061\u3089<\/a>\u3092\u53c2\u7167)<\/li>\n<\/ul>\n<p>\u4ee5\u4e0b\u306f\u78ba\u8a8d\u7528\u306e\u3084\u3063\u3064\u3051\u30b3\u30fc\u30c9<\/p>\n<ul>\n<li>id \u3068\u3057\u3066\u30012.1 \u306e\u30c0\u30df\u30fc\u30d5\u30a1\u30a4\u30eb\u540d\u306e\u4e00\u90e8\u3092\u6e21\u3059\u3053\u3068\u3067\u3001\u53d6\u5f97\u6210\u529f\u3001\u5931\u6557\u3092\u78ba\u8a8d<\/li>\n<li>\u30af\u30a8\u30ea\u30d1\u30e9\u30e1\u30fc\u30bf\u3068\u3057\u3066\u30c0\u30df\u30fc\u306e\u30e9\u30f3\u30c0\u30e0\u6587\u5b57\u5217\u3092\u4ed8\u4e0e\u3059\u308b\u3053\u3068\u3067\u3001\u30d6\u30e9\u30a6\u30b6\u304c\u30ad\u30e3\u30c3\u30b7\u30e5\u3059\u308b\u306e\u3092\u6291\u5236<\/li>\n<\/ul>\n<p><strong>services\/helloApi.js<\/strong><\/p>\n<pre class=\"prettyprint linenums\">import request from 'superagent';\r\n\r\n\/\/ http:\/\/qiita.com\/salesone\/items\/356572e689b9c2099c5c\r\nexport function helloApi(id) {\r\n    console.log(\"helloApi(\" + id + \")\");\r\n    return new Promise(\r\n        (resolve, reject) =&gt; {\r\n            request\r\n                .get(\".\/hello_{0}.json?dt=\".replace(\"{0}\", id) + Math.random().toString().replace(\".\", \"\"))\r\n                .end(function (err, res) {\r\n                    if (err) {\r\n                        reject(err);\r\n                    } else {\r\n                        resolve({ payload: res.body });\r\n                    }\r\n                });\r\n        }\r\n    );\r\n}\r\n<\/pre>\n<h3>2.4 Sagas<\/h3>\n<p>\u4e0a\u8a18\u3067\u4f5c\u6210\u3057\u305fAPI\u3092\u547c\u3073\u51fa\u3057\u3001\u6210\u529f\/\u5931\u6557\u306b\u5fdc\u3058\u305fAction\u3092\u5024\u3092\u30bb\u30c3\u30c8\u3057\u547c\u3073\u51fa\u3059\u3002<strong><br \/>\/sagas\/index.js<\/strong><\/p>\n<pre class=\"prettyprint linenums\">import { takeEvery } from 'redux-saga';\r\nimport { call, put } from 'redux-saga\/effects';\r\nimport {\r\n    HELLO, helloAction,\r\n    HELLO_API, helloApiAction,\r\n    HELLO_API_SUCCESS, helloApiSuccessAction,\r\n    HELLO_API_FAIL, helloApiFailAction\r\n} from '..\/actions';\r\nimport { helloApi } from '..\/services\/helloApi';\r\n\r\nexport function* getHelloApi(action) {\r\n    console.log(helloApiSuccessAction());\r\n    try {\r\n        console.log(action);\r\n        const data = yield call(helloApi, action.payload.id);\r\n        yield put(helloApiSuccessAction(data.payload));\r\n    } catch (error) {\r\n        yield put(helloApiFailAction(error));\r\n    }\r\n}\r\n\r\n\/\/ https:\/\/redux-saga.js.org\/docs\/basics\/UsingSagaHelpers.html\r\nexport default function* rootSaga() {\r\n    \/\/yield* takeEvery(HELLO, helloAction);\r\n    yield* takeEvery(HELLO_API, getHelloApi);\r\n}\r\n<\/pre>\n<h3>2.5 Reducer<\/h3>\n<p>Action\u306b\u8a2d\u5b9a\u3055\u308c\u305f\u5024\u304b\u3089\u72b6\u614b\u5024\u3092\u751f\u6210\u3059\u308b\u3002<\/p>\n<p>\u30c0\u30df\u30fc\u306e\u5358\u7d14\u306a\u51e6\u7406\u306e\u305f\u3081\u3001\u8b58\u5225\u306e\u305f\u3081\u3001\u672b\u5c3e\u306b\u51e6\u7406\u6642\u9593\u3092\u4ed8\u4e0e\u3057\u3066\u3044\u308b\u3002<\/p>\n<p><strong>\/reducers\/hello.js<\/strong><\/p>\n<pre class=\"prettyprint linenums\">import { HELLO, HELLO_API, HELLO_API_SUCCESS, HELLO_API_FAIL } from '..\/actions';\r\n\r\nexport default function hello(state=\"\", action) {\r\n    var suffix = \" \" + (new Date()).toLocaleTimeString(\"ja-JP\");\r\n    switch (action.type) {\r\n        case HELLO:\r\n            return action.payload + \",hello\" + suffix;\r\n        case HELLO_API_SUCCESS:\r\n            return action.payload.message + suffix;\r\n        case HELLO_API_FAIL:\r\n            return action.payload.toString() + suffix;\r\n        default:\r\n            return state;\r\n    }\r\n}<\/pre>\n<h3>2.6 App<\/h3>\n<ul>\n<li>Home \u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u306b\u3001\u6210\u529f\/\u5931\u6557\u306eAPI\u547c\u3073\u51fa\u3057\u30dc\u30bf\u30f3\u3092\u914d\u7f6e\u3002<\/li>\n<li>name \u5c5e\u6027\u306e\u5024\u3092Action\u306b\u5f15\u304d\u6e21\u3059<\/li>\n<\/ul>\n<p><strong>\/containers\/app.js<\/strong><\/p>\n<pre class=\"prettyprint linenums\">import React, { Component } from 'react';\r\nimport { BrowserRouter, Route, Link } from 'react-router-dom';\r\nimport { connect } from 'react-redux';\r\nimport { withRouter } from 'react-router-dom'\r\nimport { helloAction, helloApiAction } from '..\/actions';\r\n\r\nclass Home extends Component {\r\n  handleMessage() {\r\n    this.props.dispatch(helloAction('Yes'));\r\n  }\r\n  handleMessageApi(event) {\r\n    this.props.dispatch(helloApiAction({id:event.target.name}));\r\n  }\r\n  render () {\r\n    return (\r\n      &lt;div&gt;\r\n        &lt;h2&gt;Home&lt;\/h2&gt;\r\n        { this.props.hello }\r\n        &lt;br \/&gt;\r\n        &lt;button onClick={ this.handleMessage.bind(this) } &gt;Hello&lt;\/button&gt;\r\n        &lt;br \/&gt;\r\n        &lt;button name=\"successurl\" onClick={ this.handleMessageApi.bind(this) } &gt;API(Sucess)&lt;\/button&gt;\r\n        &lt;br \/&gt;\r\n        &lt;button name=\"failurl\" onClick={ this.handleMessageApi.bind(this) } &gt;API(Fail)&lt;\/button&gt;\r\n      &lt;\/div&gt;\r\n    );\r\n  }\r\n}\r\n \r\nconst About = () =&gt; (\r\n  &lt;div&gt;&lt;h2&gt;About&lt;\/h2&gt;&lt;\/div&gt;\r\n)\r\nconst Topics = () =&gt; (\r\n  &lt;div&gt;&lt;h2&gt;Topics&lt;\/h2&gt;&lt;\/div&gt;\r\n)\r\n\r\nclass App extends Component {\r\n  render() {\r\n    return (\r\n      &lt;BrowserRouter&gt;\r\n        &lt;div&gt;\r\n          &lt;ul&gt;\r\n            &lt;li&gt;&lt;Link to=\"\/\"&gt;Home&lt;\/Link&gt;&lt;\/li&gt;\r\n            &lt;li&gt;&lt;Link to=\"\/about\"&gt;About&lt;\/Link&gt;&lt;\/li&gt;\r\n            &lt;li&gt;&lt;Link to=\"\/topics\"&gt;Topics&lt;\/Link&gt;&lt;\/li&gt;\r\n          &lt;\/ul&gt;\r\n          &lt;hr \/&gt;\r\n          {\/* http:\/\/qiita.com\/kuy\/items\/869aeb7b403ea7a8fd8a *\/}\r\n          &lt;Route exact path=\"\/\" component={connect(state =&gt; state)(Home)} \/&gt;\r\n          &lt;Route exact path=\"\/about\" component={About} \/&gt;\r\n          &lt;Route exact path=\"\/topics\" component={Topics} \/&gt;\r\n        &lt;\/div&gt;\r\n      &lt;\/BrowserRouter&gt;\r\n    );\r\n  }\r\n}\r\n\r\n\/\/ http:\/\/qiita.com\/MegaBlackLabel\/items\/df868e734d199071b883#_reference-863a1e1485bf47f046e5\r\nfunction mapStateToProps(state) {\r\n  return {\r\n    message:state.hello\r\n  };\r\n}\r\n\r\n\/\/ https:\/\/stackoverflow.com\/questions\/43350683\/react-router-uncaught-typeerror-cannot-read-property-route-of-undefined\r\n\/\/ export default withRouter(connect(mapStateToProps)(App))\r\nexport default connect(state =&gt; state)(App)\r\n<\/pre>\n<h2>3.\u5b9f\u884c<\/h2>\n<h3>3.1 \u6210\u529f<\/h3>\n<p>\u6210\u529f\u30dc\u30bf\u30f3\u3092\u62bc\u4e0b\u3001json\u53d6\u5f97\u3057\u3001Action\u306b\u3088\u308astate\u304c\u66f4\u65b0\u3055\u308c\u3001\u305d\u3046\u3066\u3044\u3055\u308c\u305f\u7d50\u679c\u304c\u8868\u793a\u3055\u308c\u305fOK\u3002<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/React--React-Router--Redux-Saga-Ajax_B31A\/super_agent01.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"442\" height=\"406\" title=\"super_agent01\" style=\"display: inline; background-image: none;\" alt=\"super_agent01\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/React--React-Router--Redux-Saga-Ajax_B31A\/super_agent01_thumb.jpg\" border=\"0\" \/><\/a><\/p>\n<h3>3.2 \u5931\u6557(\u5b58\u5728\u3057\u306a\u3044URL\u3092\u6307\u5b9a)<\/h3>\n<p>\u5931\u6557\u30dc\u30bf\u30f3\u62bc\u4e0b\u3067\u3001\u5b58\u5728\u3057\u306a\u3044URL\u3078\u30a2\u30af\u30bb\u30b9\u3057\u306b\u884c\u304d\u3001\u7d50\u679c\u30a8\u30e9\u30fc\u30e1\u30c3\u30bb\u30fc\u30b8\u304c\u753b\u9762\u8868\u793a\u3055\u308c\u305fOK\u3002<\/p>\n<p><a href=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/React--React-Router--Redux-Saga-Ajax_B31A\/super_agent03.jpg\"><img loading=\"lazy\" decoding=\"async\" width=\"447\" height=\"411\" title=\"super_agent03\" style=\"display: inline; background-image: none;\" alt=\"super_agent03\" src=\"https:\/\/www.typea.info\/blog\/wp-content\/uploads\/image\/React--React-Router--Redux-Saga-Ajax_B31A\/super_agent03_thumb.jpg\" border=\"0\" \/><\/a><\/p>\n<p>\u3088\u3046\u3084\u304f\u6700\u4f4e\u30e9\u30a4\u30f3\u306b\u305f\u3069\u308a\u7740\u3044\u305f\u3002\u3002\u3002<\/p>\n<p><a href=\"https:\/\/www.amazon.co.jp\/%E5%85%A5%E9%96%80-React-%E2%80%95%E3%82%B3%E3%83%B3%E3%83%9D%E3%83%BC%E3%83%8D%E3%83%B3%E3%83%88%E3%83%99%E3%83%BC%E3%82%B9%E3%81%AEWeb%E3%83%95%E3%83%AD%E3%83%B3%E3%83%88%E3%82%A8%E3%83%B3%E3%83%89%E9%96%8B%E7%99%BA-Frankie-Bagnardi\/dp\/4873117194\/ref=as_li_ss_il?ie=UTF8&amp;linkCode=li2&amp;tag=typea09-22&amp;linkId=eaba2c732657f20ca1b48853d9262d1a\" target=\"_blank\"><img decoding=\"async\" src=\"\/\/ws-fe.amazon-adsystem.com\/widgets\/q?_encoding=UTF8&amp;ASIN=4873117194&amp;Format=_SL160_&amp;ID=AsinImage&amp;MarketPlace=JP&amp;ServiceVersion=20070822&amp;WS=1&amp;tag=typea09-22\" border=\"0\" \/><\/a><img loading=\"lazy\" decoding=\"async\" width=\"1\" height=\"1\" style=\"margin: 0px !important; border: currentcolor !important; border-image: none !important;\" alt=\"\" src=\"https:\/\/ir-jp.amazon-adsystem.com\/e\/ir?t=typea09-22&amp;l=li2&amp;o=9&amp;a=4873117194\" border=\"0\" \/><\/p>\n<ol>\n<li><a href=\"https:\/\/www.typea.info\/blog\/index.php\/2017\/08\/15\/react_1\">React \u958b\u767a\u306e\u5168\u4f53\u50cf\u3092\u628a\u63e1\u3057\u3064\u3064\u958b\u767a\u74b0\u5883\u3092\u6574\u3048\u308b<\/a><\/li>\n<li><a href=\"https:\/\/www.typea.info\/blog\/index.php\/2017\/08\/16\/react_router\">React \u306e\u5358\u7d14\u306a\u30b5\u30f3\u30d7\u30eb\u306b React Router \u3092\u9069\u7528\u3059\u308b<\/a><\/li>\n<li><a href=\"https:\/\/www.typea.info\/blog\/index.php\/2017\/08\/17\/react_react_router_redux-saga\">React \u306e\u5358\u7d14\u306a\u30b5\u30f3\u30d7\u30eb\u306b React Router \u3092\u7d44\u307f\u8fbc\u3093\u3060\u3082\u306e\u306b Redux-Saga \u3092\u9069\u7528\u3059\u308b<\/a><\/li>\n<li><a href=\"https:\/\/www.typea.info\/blog\/index.php\/2017\/08\/19\/react_react_router_redux-saga_ajax\">React \u306e\u5358\u7d14\u306a\u30b5\u30f3\u30d7\u30eb\u306b React Router \u3092\u7d44\u307f\u8fbc\u3093\u3060\u3082\u306e\u306b Redux-Saga \u3092\u9069\u7528\u3057\u305f\u3082\u306e\u304b\u3089Ajax\u901a\u4fe1\u3092\u7d44\u307f\u8fbc\u3080<\/a><\/li>\n<li><a href=\"https:\/\/www.typea.info\/blog\/index.php\/2017\/08\/23\/react-react_router-redux-saga-superagent_bootstrap\">React\u74b0\u5883->React Router->Redux-Saga->SuperAgent \u306b Bootstrap\u3092\u9069\u7528\u3059\u308b<\/a><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>React \u306f View\u3057\u304b\u62c5\u5f53\u3057\u3066\u3044\u306a\u3044\u306e\u3067\u3001\u305d\u306e\u4ed6\u306e\u6a5f\u80fd\u3092\u542b\u3081\u305f\u30a2\u30d7\u30ea\u306e\u30b9\u30b1\u30eb\u30c8\u30f3\u4f5c\u6210\u3092\u76ee\u6307\u3059\u3002 Node.js\u3001npm \u30d1\u30c3\u30b1\u30fc\u30b8\u7ba1\u7406\u3001\u304a\u3088\u3073\u3001\u30d6\u30e9\u30a6\u30b6\u304c\u5bfe\u5fdc\u3057\u3066\u3044\u306a\u3044ECMAScript\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u5229\u7528\u306bBabe [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"sns_share_botton_hide":"","vkExUnit_sns_title":"","_vk_print_noindex":"","sitemap_hide":"","_veu_custom_css":"","veu_display_promotion_alert":"","vkexunit_cta_each_option":"","footnotes":""},"categories":[99],"tags":[],"class_list":["post-517","post","type-post","status-publish","format-standard","hentry","category-react"],"veu_head_title_object":{"title":"","add_site_title":""},"_links":{"self":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/517","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=517"}],"version-history":[{"count":0,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/posts\/517\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=517"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=517"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.typea.info\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=517"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}