{"id":5571,"date":"2023-01-06T09:42:17","date_gmt":"2023-01-06T01:42:17","guid":{"rendered":"https:\/\/badgameshow.com\/steven\/?p=5571"},"modified":"2023-01-06T09:42:17","modified_gmt":"2023-01-06T01:42:17","slug":"%e5%ad%b8%e7%bf%92%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8react-js%e4%be%86%e6%90%9c%e7%b4%a2","status":"publish","type":"post","link":"https:\/\/badgameshow.com\/steven\/react-js\/%e5%ad%b8%e7%bf%92%e5%a6%82%e4%bd%95%e4%bd%bf%e7%94%a8react-js%e4%be%86%e6%90%9c%e7%b4%a2\/","title":{"rendered":"\u5b78\u7fd2\u5982\u4f55\u4f7f\u7528React.JS\u4f86\u641c\u7d22"},"content":{"rendered":"<p><meta name=\"keywords\" content=\"React.JS, Search\"><\/p>\n<h1>\u5982\u4f55\u5229\u7528 React.JS \u9032\u884c\u641c\u7d22<\/h1>\n<p>React.JS \u662f\u4e00\u500b\u7531 Facebook \u6240\u958b\u767c\u7684 JavaScript \u51fd\u5f0f\u5eab\uff0c\u53ef\u4ee5\u8b93\u958b\u767c\u8005\u5efa\u7acb\u4e92\u52d5\u5f0f\u7684\u7db2\u9801\u61c9\u7528\u7a0b\u5f0f\u3002\u5b83\u53ef\u4ee5\u8b93\u958b\u767c\u8005\u5efa\u7acb\u51fa\u9ad8\u6548\u80fd\u3001\u53ef\u7dad\u8b77\u7684\u61c9\u7528\u7a0b\u5f0f\uff0c\u4e26\u4e14\u53ef\u4ee5\u8b93\u4f7f\u7528\u8005\u5728\u7db2\u9801\u4e0a\u9032\u884c\u641c\u7d22\u3002<\/p>\n<p><!--more--><\/p>\n<p>React.JS \u63d0\u4f9b\u4e86\u4e00\u500b\u53ef\u4ee5\u8b93\u958b\u767c\u8005\u5efa\u7acb\u641c\u7d22\u529f\u80fd\u7684 API\uff0c\u53ef\u4ee5\u8b93\u958b\u767c\u8005\u5efa\u7acb\u51fa\u9ad8\u6548\u7387\u7684\u641c\u7d22\u529f\u80fd\u3002\u958b\u767c\u8005\u53ef\u4ee5\u4f7f\u7528 React.JS \u4f86\u5efa\u7acb\u51fa\u4e00\u500b\u641c\u7d22\u6846\uff0c\u8b93\u4f7f\u7528\u8005\u53ef\u4ee5\u8f38\u5165\u95dc\u9375\u5b57\u4f86\u641c\u5c0b\u7db2\u9801\u4e0a\u7684\u8cc7\u6599\u3002<\/p>\n<h2>\u5982\u4f55\u4f7f\u7528 React.JS \u5efa\u7acb\u641c\u7d22\u529f\u80fd<\/h2>\n<p>\u8981\u4f7f\u7528 React.JS \u5efa\u7acb\u641c\u7d22\u529f\u80fd\uff0c\u958b\u767c\u8005\u9700\u8981\u5148\u5b89\u88dd React.JS \u7684\u958b\u767c\u74b0\u5883\uff0c\u4e26\u4e14\u5b89\u88dd\u4e00\u4e9b\u5fc5\u8981\u7684\u6a21\u7d44\uff0c\u4f8b\u5982\uff1aReact-Router\u3001React-Redux \u7b49\u7b49\u3002<\/p>\n<p>\u63a5\u8457\uff0c\u958b\u767c\u8005\u53ef\u4ee5\u4f7f\u7528 React.JS \u7684 API \u4f86\u5efa\u7acb\u4e00\u500b\u641c\u7d22\u6846\uff0c\u4e26\u4e14\u8a2d\u5b9a\u641c\u7d22\u6846\u7684\u529f\u80fd\uff0c\u4f8b\u5982\uff1a\u8f38\u5165\u95dc\u9375\u5b57\u5f8c\uff0c\u53ef\u4ee5\u81ea\u52d5\u641c\u5c0b\u7db2\u9801\u4e0a\u7684\u8cc7\u6599\u3002<\/p>\n<h2>\u5982\u4f55\u512a\u5316 React.JS \u641c\u7d22\u529f\u80fd<\/h2>\n<p>\u8981\u512a\u5316 React.JS \u641c\u7d22\u529f\u80fd\uff0c\u958b\u767c\u8005\u53ef\u4ee5\u4f7f\u7528\u4e00\u4e9b\u6280\u8853\u4f86\u63d0\u5347\u641c\u7d22\u7684\u6548\u7387\uff0c\u4f8b\u5982\uff1a\u4f7f\u7528 <code>React-Router<\/code> \u4f86\u5efa\u7acb\u8def\u7531\uff0c\u8b93\u4f7f\u7528\u8005\u53ef\u4ee5\u5feb\u901f\u7684\u700f\u89bd\u7db2\u9801\uff1b\u4f7f\u7528 <code>React-Redux<\/code> \u4f86\u5efa\u7acb\u8cc7\u6599\u5132\u5b58\uff0c\u8b93\u641c\u7d22\u7684\u8cc7\u6599\u53ef\u4ee5\u5feb\u901f\u7684\u88ab\u53d6\u5f97\uff1b\u4f7f\u7528 <code>React-Apollo<\/code> \u4f86\u5efa\u7acb GraphQL \u67e5\u8a62\uff0c\u8b93\u641c\u7d22\u7684\u8cc7\u6599\u53ef\u4ee5\u5feb\u901f\u7684\u88ab\u53d6\u5f97\u3002<\/p>\n<h2>\u7e3d\u7d50<\/h2>\n<p>React.JS \u662f\u4e00\u500b\u975e\u5e38\u5f37\u5927\u7684 JavaScript \u51fd\u5f0f\u5eab\uff0c\u53ef\u4ee5\u8b93\u958b\u767c\u8005\u5efa\u7acb\u51fa\u9ad8\u6548\u80fd\u3001\u53ef\u7dad\u8b77\u7684\u61c9\u7528\u7a0b\u5f0f\uff0c\u4e26\u4e14\u53ef\u4ee5\u8b93\u4f7f\u7528\u8005\u5728\u7db2\u9801\u4e0a\u9032\u884c\u641c\u7d22\u3002\u958b\u767c\u8005\u53ef\u4ee5\u4f7f\u7528 React.JS \u7684 API \u4f86\u5efa\u7acb\u4e00\u500b\u641c\u7d22\u6846\uff0c\u4e26\u4e14\u4f7f\u7528\u4e00\u4e9b\u6280\u8853\u4f86\u63d0\u5347\u641c\u7d22\u7684\u6548\u7387\uff0c\u4f8b\u5982\uff1a\u4f7f\u7528 <code>React-Router<\/code> \u3001<code>React-Redux<\/code> \u4ee5\u53ca <code>React-Apollo<\/code> \u7b49\u7b49\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6458\u8981\uff1a\u5b78\u7fd2\u5982\u4f55\u4f7f\u7528React.JS\u4f86\u641c\u7d22\uff0c\u4e86\u89e3\u5982\u4f55\u5229\u7528React.JS\u4f86\u63d0\u5347\u641c\u7d22\u6548\u7387\uff0c\u66f4\u5feb\u66f4\u6709\u6548\u5730\u627e\u5230\u60a8\u60f3\u8981\u7684\u7d50\u679c\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[184,183],"tags":[182,181],"class_list":["post-5571","post","type-post","status-publish","format-standard","hentry","category-react","category-react-js","tag-react","tag-react-js"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_shortlink":"https:\/\/wp.me\/pcFK27-1rR","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/badgameshow.com\/steven\/wp-json\/wp\/v2\/posts\/5571","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/badgameshow.com\/steven\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/badgameshow.com\/steven\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/badgameshow.com\/steven\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/badgameshow.com\/steven\/wp-json\/wp\/v2\/comments?post=5571"}],"version-history":[{"count":1,"href":"https:\/\/badgameshow.com\/steven\/wp-json\/wp\/v2\/posts\/5571\/revisions"}],"predecessor-version":[{"id":5572,"href":"https:\/\/badgameshow.com\/steven\/wp-json\/wp\/v2\/posts\/5571\/revisions\/5572"}],"wp:attachment":[{"href":"https:\/\/badgameshow.com\/steven\/wp-json\/wp\/v2\/media?parent=5571"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/badgameshow.com\/steven\/wp-json\/wp\/v2\/categories?post=5571"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/badgameshow.com\/steven\/wp-json\/wp\/v2\/tags?post=5571"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}