{"id":38096,"date":"2023-12-11T23:45:07","date_gmt":"2023-12-09T12:40:33","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/react-redux-%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f\/"},"modified":"2024-05-04T13:09:45","modified_gmt":"2024-05-04T05:09:45","slug":"react-redux-%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/react-redux-%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f\/","title":{"rendered":"React Redux \u662f\u4ec0\u4e48\uff1f"},"content":{"rendered":"<h2>redux\u662f\u4e00\u4e2a\u7528\u4e8e\u7ba1\u7406JavaScript\u5e94\u7528\u7a0b\u5e8f\u72b6\u6001\u7684\u5f00\u6e90\u5e93\u3002<\/h2>\n<p>&nbsp;<\/p>\n<h2>redux\u7684\u4e09\u4e2a\u539f\u5219<\/h2>\n<p>&nbsp;<\/p>\n<h2>\u4f7f\u7528redux\u7684\u539f\u56e0<\/h2>\n<p>&nbsp;<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d326d37434c4406c620c9\/13-0.png\" alt=\"image.png\" \/><\/div>\n<h2>Redux\u7684\u6982\u5ff5<\/h2>\n<p>&nbsp;<\/p>\n<h2>\u91cd\u65b0\u52a0\u8f7d\u672f\u8bed<\/h2>\n<p><b>\u52a8\u4f5c<\/b><\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d326d37434c4406c620c9\/25-0.png\" alt=\"image.png\" \/><\/div>\n<p>dispatch\u662f\u4e00\u4e2a\u5c06action\u4f20\u9012\u7ed9reducer\u7684\u51fd\u6570\u3002\u66f4\u65b0state\u7684\u552f\u4e00\u65b9\u6cd5\u662f\u8c03\u7528store.dispatch()\u5e76\u4f20\u9012action\u3002store\u4f1a\u6267\u884c\u5df2\u77e5reducer\u7684\u529f\u80fd\uff0c\u5e76\u4fdd\u5b58\u65b0\u7684state\u503c\u3002dispatch\u7b49\u540c\u4e8e\u89e6\u53d1\u4e00\u4e2a\u4e8b\u4ef6\u3002<\/p>\n<h2>Redux flow \u53ef\u4ee5\u88ab\u91cd\u65b0\u89e3\u91ca\u4e3a Redux \u6d41\u7a0b\u3002<\/h2>\n<p>&nbsp;<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d326d37434c4406c620c9\/31-0.png\" alt=\"image.png\" \/><\/div>\n<h2>\u8bf7\u53c2\u9605<\/h2>\n<p>\u4ee5\u4e0b\u662f\u4e09\u4e2a\u5173\u4e8eReact\u548cRedux\u7684\u6587\u7ae0\u94fe\u63a5\u3002\u8bf7\u7ed9\u51fa\u5176\u4e2d\u4e00\u4e2a\u94fe\u63a5\u7684\u4e2d\u6587\u8868\u8ff0\uff1a<br \/>\n1. GeeksforGeeks\u7684\u6587\u7ae0\u8bb2\u8ff0\u4e86React\u4e0eRedux\u5e94\u7528\u4e2d\u5178\u578b\u6570\u636e\u6d41\u7684\u8fc7\u7a0b\u3002<br \/>\n2. freecodecamp\u7684\u6587\u7ae0\u89e3\u91ca\u4e86Redux\u7684\u5b58\u50a8\u3001action\u548creducer\u3002<br \/>\n3. Redux\u5b98\u65b9\u6587\u6863\u63d0\u4f9b\u4e86\u5173\u4e8eRedux\u7684\u6559\u7a0b\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>redux\u662f\u4e00\u4e2a\u7528\u4e8e\u7ba1\u7406JavaScript\u5e94\u7528\u7a0b\u5e8f\u72b6\u6001\u7684\u5f00\u6e90\u5e93\u3002 &nbsp; redux\u7684\u4e09\u4e2a\u539f\u5219 &#038;nb [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-38096","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>React Redux \u662f\u4ec0\u4e48\uff1f - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/react-redux-\u662f\u4ec0\u4e48\uff1f\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"React Redux \u662f\u4ec0\u4e48\uff1f\" \/>\n<meta property=\"og:description\" content=\"redux\u662f\u4e00\u4e2a\u7528\u4e8e\u7ba1\u7406JavaScript\u5e94\u7528\u7a0b\u5e8f\u72b6\u6001\u7684\u5f00\u6e90\u5e93\u3002 &nbsp; redux\u7684\u4e09\u4e2a\u539f\u5219 &amp;nb [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/react-redux-\u662f\u4ec0\u4e48\uff1f\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-12-09T12:40:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-04T05:09:45+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d326d37434c4406c620c9\/13-0.png\" \/>\n<meta name=\"author\" content=\"\u79d1, \u96c5\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u79d1, \u96c5\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/react-redux-%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/react-redux-%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f\/\",\"name\":\"React Redux \u662f\u4ec0\u4e48\uff1f - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-12-09T12:40:33+00:00\",\"dateModified\":\"2024-05-04T05:09:45+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/41e222757cdd2a3365361328bd79970a\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/react-redux-%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/react-redux-%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/react-redux-%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"React Redux \u662f\u4ec0\u4e48\uff1f\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/41e222757cdd2a3365361328bd79970a\",\"name\":\"\u79d1, \u96c5\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g\",\"caption\":\"\u79d1, \u96c5\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/keya\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/react-redux-%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"React Redux \u662f\u4ec0\u4e48\uff1f - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/react-redux-\u662f\u4ec0\u4e48\uff1f\/","og_locale":"zh_CN","og_type":"article","og_title":"React Redux \u662f\u4ec0\u4e48\uff1f","og_description":"redux\u662f\u4e00\u4e2a\u7528\u4e8e\u7ba1\u7406JavaScript\u5e94\u7528\u7a0b\u5e8f\u72b6\u6001\u7684\u5f00\u6e90\u5e93\u3002 &nbsp; redux\u7684\u4e09\u4e2a\u539f\u5219 &nb [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/react-redux-\u662f\u4ec0\u4e48\uff1f\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-12-09T12:40:33+00:00","article_modified_time":"2024-05-04T05:09:45+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d326d37434c4406c620c9\/13-0.png"}],"author":"\u79d1, \u96c5","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u79d1, \u96c5"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/react-redux-%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/react-redux-%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f\/","name":"React Redux \u662f\u4ec0\u4e48\uff1f - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-12-09T12:40:33+00:00","dateModified":"2024-05-04T05:09:45+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/41e222757cdd2a3365361328bd79970a"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/react-redux-%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/react-redux-%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/react-redux-%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"React Redux \u662f\u4ec0\u4e48\uff1f"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/41e222757cdd2a3365361328bd79970a","name":"\u79d1, \u96c5","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g","caption":"\u79d1, \u96c5"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/keya\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/react-redux-%e6%98%af%e4%bb%80%e4%b9%88%ef%bc%9f\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/38096","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=38096"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/38096\/revisions"}],"predecessor-version":[{"id":98511,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/38096\/revisions\/98511"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=38096"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=38096"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=38096"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}