{"id":154389,"date":"2020-09-09T01:41:36","date_gmt":"2020-09-08T17:41:36","guid":{"rendered":"http:\/\/4563.org\/?p=154389"},"modified":"2020-09-09T01:41:36","modified_gmt":"2020-09-08T17:41:36","slug":"%e6%83%b3%e9%97%ae%e4%b8%8b-react-%e7%9a%84%e4%b8%bb%e6%b5%81%e7%94%9f%e6%80%81","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=154389","title":{"rendered":"\u60f3\u95ee\u4e0b React \u7684\u4e3b\u6d41\u751f\u6001"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  \u60f3\u95ee\u4e0b React \u7684\u4e3b\u6d41\u751f\u6001               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : ryougifujino <\/span>  <span><i><\/i> 4<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>\u4e00\u76f4\u5728\u7528 Vue\uff0c\u90fd\u662f\u5b98\u65b9\u7684\u751f\u6001\u89c9\u5f97\u5f88\u6e05\u6670\u3002<\/p>\n<p>\u6700\u8fd1\u60f3\u7ec3\u4e60\u4e00\u4e0b React \u53ca\u5176\u5468\u8fb9\u751f\u6001\uff0c\u4f46\u662f\u6709\u70b9\u65e0\u4ece\u4e0b\u624b\u7684\u611f\u89c9\u3002<\/p>\n<p>1 \u3001\u60f3\u95ee\u4e0b\u4e3b\u6d41\u751f\u6001\u6709\u54ea\u4e9b\u5462\uff1f<\/p>\n<p>2 \u3001dva \u3001umijs \u3001redux \u3001mobx \u8fd9\u4e9b\u5206\u522b\u6709\u4ec0\u4e48\u7528\uff0c\u548c Vue \u751f\u6001\u91cc\u7684\u54ea\u4e9b\u4e1c\u897f\u5bf9\u5e94\u5462\uff1f<\/p>\n<p>3 \u3001\u8fd8\u6709 ant-design \u90a3\u5957\u4e5f\u662f\u633a\u61f5\u903c\u7684\uff0cant-design-pro \u6211\u4ee5\u4e3a\u548c vue-element-admin \u5dee\u4e0d\u591a\u4f46\u597d\u50cf\u53c8\u6709\u70b9\u533a\u522b\u3002<\/p>\n<p>4 \u3001\u6700\u4e3b\u6d41\u7684\u6837\u5f0f\u89e3\u51b3\u65b9\u6848\u662f\u4ec0\u4e48\u5462\uff1f<\/p>\n<p>5 \u3001\u6211\u7528\u4ec0\u4e48\u5e93\u7684 cli \u6765\u521b\u5efa\u662f\u6700\u597d\u7684\u5462\uff1f\u76ee\u6807\u662f\u521b\u5efa\u4e00\u4e2a\u81f3\u5c11\u5305\u542b ts+\u72b6\u6001\u7ba1\u7406+ui \u5e93\u7684\u9879\u76ee\uff0c\u4e4b\u524d\u7528\u7684 cra \u7136\u540e eject \u6765\u6539\u7684\uff0c\u611f\u89c9\u6bd4\u8f83\u9ebb\u70e6\u3002<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>6<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"3250229\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Danswerme <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             2. redux mbox \u7c7b\u4f3c vuex\uff0cumijs \u7c7b\u4f3c nextjs\uff0cdva = React-Router + Redux + Redux-saga<\/p>\n<p>5. cra \u5f00\u7bb1\u53ef\u7528\u7a0b\u5ea6\u76f8\u6bd4 vue-cli \u8fd8\u662f\u5dee\u7684\u6709\u70b9\u8fdc\uff0c\u53ef\u4ee5\u82b1\u4e2a\u534a\u5929\u65f6\u95f4\u81ea\u5df1\u5199 webpack \u76f8\u5173\u914d\u7f6e\u6587\u4ef6\u5f04\u4e2a\u811a\u624b\u67b6\uff0c\u4ee5\u540e\u76f4\u63a5\u7528\u8fd9\u4e2a\u811a\u624b\u67b6\u5c31\u884c\u3002\u6015\u9ebb\u70e6\u7684\u8bdd\u9664\u4e86\u5b98\u65b9\u7684\u8fd9\u4e2a\u811a\u624b\u67b6\u8fd8\u662f\u5f88\u591a\u522b\u7684\u811a\u624b\u67b6\uff0c\u4f60\u53ef\u4ee5\u641c\u641c\u770b\u3002                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3250230\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : murmur <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             ant-desgin \u7684\u8001\u7248\u672c\u6709\u5f88\u591a\u5947\u602a\u7684\u8bbe\u7f6e\uff0c\u5c24\u5176\u662f\u90a3\u4e2a\u8868\u5355\u7684\u88c5\u9970\u5668\uff0c\u5404\u79cd\u5947\u602a\uff0c\u65b0\u7248\u672c\u4f1a\u597d\u4e00\u4e9b\uff1f<\/p>\n<p>\u6837\u5f0f\u8981\u4ec0\u4e48\u89e3\u51b3\u65b9\u6848\uff0c\u90a3\u662f\u62fc\u8bbe\u8ba1\u5e08\u548c css \u57fa\u7840\u7684\u5730\u65b9\uff0c\u4f60\u5199\u5230\u54ea\u91cc\u8be5\u4e11\u4e0d\u8fd8\u662f\u4e00\u6837\u4e11                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3250231\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : EminemW <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6211\u53f8\u7528\u7684 antd pro \u65e7\u7248\u672c\uff0c\u6211\u60f3\u5347\u7ea7\u7248\u672c\uff0c\u8981\u6539\u597d\u591a\u4e1c\u897f\uff0c\u6bcf\u6b21\u90fd\u5931\u8d25\uff0c\u7ed3\u8bba\u662f\u4e0d\u8981\u7528\u963f\u91cc\u5f00\u6e90\u7684\u4e1c\u897f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3250232\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u4e3b<\/span> <span>\u8cc7\u6df1\u5927\u4f6c : ryougifujino <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @murmur #2 \u6211\u6307\u7684\u662f CSS Modules\uff0cCSS in JS \u4e4b\u7c7b\u7684\u4e1c\u897f                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3250233\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lblblong <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             mobx \u548c redux \u5bf9\u5e94 vuex\uff0creact-router \u5bf9\u5e94 vue-router\uff0c\u5982\u679c\u60f3\u8981\u548c vue-router \u4e00\u6837\u4f7f\u7528\u914d\u7f6e\u5f0f\u8def\u7531\u9700\u8981\u4f7f\u7528 react-router-config \u6216\u8005 react-router6\uff0creact-router \u4e0d\u63d0\u4f9b\u8def\u7531\u5b88\u536b\u529f\u80fd\u8981\u81ea\u5df1\u5b9e\u73b0\uff0ccreate-react-app \u5bf9\u5e94 vue-cli                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"3250234\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : murmur <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             @ryougifujino \u6211\u66f4\u559c\u6b22\u5199\u5230\u5355\u72ec\u7684\u6587\u4ef6\u91cc\uff0c\u6bd4\u8f83\u6709\u6b63\u7edf\u7684\u611f\u89c9\uff0c\u800c\u4e14\u4ec0\u4e48\u7f16\u8f91\u5668\u90fd\u80fd\u6b63\u5e38\u9ad8\u4eae\u548c\u63d0\u793a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>\u60f3\u95ee\u4e0b React \u7684\u4e3b\u6d41\u751f\u6001 \u8cc7&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/154389"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=154389"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/154389\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=154389"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=154389"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=154389"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}