{"id":38320,"date":"2023-07-29T10:06:33","date_gmt":"2023-10-02T01:51:31","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bb%8e%e7%8e%b0%e5%9c%a8%e5%bc%80%e5%a7%8b%e8%b5%b6%e4%b8%8areact18%ef%bc%88%e4%b8%8a%e7%af%87%ef%bc%89\/"},"modified":"2024-04-30T15:53:01","modified_gmt":"2024-04-30T07:53:01","slug":"%e4%bb%8e%e7%8e%b0%e5%9c%a8%e5%bc%80%e5%a7%8b%e8%b5%b6%e4%b8%8areact18%ef%bc%88%e4%b8%8a%e7%af%87%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bb%8e%e7%8e%b0%e5%9c%a8%e5%bc%80%e5%a7%8b%e8%b5%b6%e4%b8%8areact18%ef%bc%88%e4%b8%8a%e7%af%87%ef%bc%89\/","title":{"rendered":"\u4ece\u73b0\u5728\u5f00\u59cb\u8d76\u4e0aReact18\uff08\u4e0a\u7bc7\uff09"},"content":{"rendered":"<h3>\u9996\u5148<\/h3>\n<p>\u867d\u7136\u6211\u60f3\u5b66\u4e60React18\uff0c\u4f46\u65f6\u95f4\u5df2\u7ecf\u8fc7\u53bb\u4e86\u4e00\u6bb5\u65e5\u5b50\u3002<br \/>\n\u7136\u800c\uff0c\u5728\u6b64\u671f\u95f4\uff0c\u80af\u5b9a\u6709\u4e9b\u4eba\u5df2\u7ecf\u8ffd\u8d76\u4e0a\u4e86React18\u7684\u53d8\u5316\u548c\u66f4\u65b0\u5185\u5bb9\uff0c\u800c\u5bf9\u4e8e\u77e5\u9053\u548c\u4e0d\u77e5\u9053\u8fd9\u4e9b\u5185\u5bb9\u7684\u4eba\u4e4b\u95f4\u53ef\u80fd\u5b58\u5728\u5f88\u5927\u5dee\u8ddd\u3002\u672c\u6587\u7684\u76ee\u6807\u662f\u8ba9\u6211\u8fd9\u4e2a\u8ffd\u6162\u4e86\u6b65\u4f10\u7684\u4eba\u5c3d\u91cf\u8d76\u4e0a\u8fdb\u5ea6\u3002<\/p>\n<h4>\u5173\u4e8e\u5b66\u4e60\u7684\u5fc5\u8981\u6027<\/h4>\n<p>\u7531\u4e8eReact\u5b9a\u671f\u66f4\u65b0\uff0c\u56e0\u6b64\u5f88\u5bb9\u6613\u8ba4\u4e3a\u8fd9\u6b21\u66f4\u65b0\u53ea\u662f\u5176\u4e2d\u4e00\u90e8\u5206\u3002\u4f46\u5b9e\u9645\u4e0a\uff0c\u8fd9\u6b21\u66f4\u65b0\u88ab\u79f0\u4e3a\u9769\u547d\uff0c\u6709\u8bb8\u591a\u91cd\u5927\u53d8\u5316\uff0c\u9884\u611f\u5230\u672a\u6765\u7684\u524d\u7aef\u5f00\u53d1\u5c06\u53d1\u751f\u7ffb\u5929\u8986\u5730\u7684\u53d8\u5316\u3002\u8fd8\u6709\u8bb8\u591a\u5373\u5c06\u63a8\u51fa\u7684\u529f\u80fd\u6b63\u5728\u51c6\u5907\u9636\u6bb5\uff0c\u6240\u4ee5\u8fd9\u6b21\u66f4\u65b0\u662f\u5fc5\u770b\u7684\u3002<\/p>\n<div>React18\u662f\u4e00\u4e2a\u76f8\u5f53\u91cd\u8981\u7684\u7248\u672c\u5347\u7ea7\uff0c\u4e0e17\u7b49\u66f4\u65b0\u76f8\u6bd4\u3002<\/div>\n<h4>\u6982\u8ff0<\/h4>\n<p>\u6211\u8ba4\u4e3a\uff0cReact18\u6709\u8bb8\u591a\u66f4\u65b0\uff0c\u4f46\u53ea\u8981\u638c\u63e1\u4ee5\u4e0b\u4e09\u4e2a\u65b9\u9762\uff0c\u5c31\u57fa\u672c\u4e0d\u4f1a\u51fa\u9519\u3002<\/p>\n<p>\u672c\u6587\u5c06\u8ba8\u8bba1\u548c2\u4e24\u4e2a\u65b9\u9762\u3002<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u81ea\u52a8\u5206\u6279<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\n<li style=\"list-style-type: none;\">\n<ol>\u8fc7\u6e21<\/ol>\n<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<ol>\u60ac\u5ff5<\/ol>\n<p>\u6211\u60f3\u8981\u4e00\u4e00\u5730\u5c06\u5404\u4e2a\u529f\u80fd\u548c\u6982\u8981\u89e3\u6790\u5e76\u8f93\u51fa\u3002<\/p>\n<p>\u5173\u4e8e\u300c\u6839\u300d\u4e00\u8bcd<\/p>\n<p>\u5728React18\u548c\u4e4b\u524d\u7684\u7248\u672c\u4e2d\uff0c\u6709\u4e00\u4e2a\u91cd\u8981\u7684\u524d\u63d0\u662f\u5728index.js\u4e2d\uff0cReactDOM\u7684\u6e32\u67d3\u65b9\u5f0f\u6709\u6240\u4e0d\u540c\uff0c\u4f7f\u7528\u4e86createRoot\u8fdb\u884c\u6e32\u67d3\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"c1\">\/\/\u3000React18 createRoot\u306b\u3059\u308b\u306818\u306e\u6a5f\u80fd\u304c\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308b<\/span>\r\n<span class=\"kd\">const<\/span> <span class=\"nx\">root<\/span> <span class=\"o\">=<\/span> <span class=\"nx\">ReactDOM<\/span><span class=\"p\">.<\/span><span class=\"nf\">createRoot<\/span><span class=\"p\">(<\/span><span class=\"nb\">document<\/span><span class=\"p\">.<\/span><span class=\"nf\">getElementById<\/span><span class=\"p\">(<\/span><span class=\"dl\">\"<\/span><span class=\"s2\">root<\/span><span class=\"dl\">\"<\/span><span class=\"p\">));<\/span>\r\n<span class=\"nx\">root<\/span><span class=\"p\">.<\/span><span class=\"nf\">render<\/span><span class=\"p\">(<\/span>\r\n  <span class=\"o\">&lt;<\/span><span class=\"nx\">React<\/span><span class=\"p\">.<\/span><span class=\"nx\">StrictMode<\/span><span class=\"o\">&gt;<\/span>\r\n    <span class=\"o\">&lt;<\/span><span class=\"nx\">App<\/span> <span class=\"o\">\/&gt;<\/span>\r\n  <span class=\"o\">&lt;<\/span><span class=\"sr\">\/React.StrictMode<\/span><span class=\"err\">&gt;\r\n<\/span><span class=\"p\">);<\/span>\r\n\r\n<span class=\"c1\">\/\/React17<\/span>\r\n<span class=\"nx\">ReactDOM<\/span><span class=\"p\">.<\/span><span class=\"nf\">render<\/span><span class=\"p\">(<\/span>\r\n  <span class=\"o\">&lt;<\/span><span class=\"nx\">React<\/span><span class=\"p\">.<\/span><span class=\"nx\">StrictMode<\/span><span class=\"o\">&gt;<\/span>\r\n    <span class=\"o\">&lt;<\/span><span class=\"nx\">App<\/span> <span class=\"o\">\/&gt;<\/span>\r\n  <span class=\"o\">&lt;<\/span><span class=\"sr\">\/React.StrictMode&gt;<\/span><span class=\"err\">,\r\n<\/span>  <span class=\"nb\">document<\/span><span class=\"p\">.<\/span><span class=\"nf\">getElementByID<\/span><span class=\"p\">(<\/span><span class=\"dl\">\"<\/span><span class=\"s2\">root<\/span><span class=\"dl\">\"<\/span><span class=\"p\">)<\/span>\r\n<span class=\"p\">);<\/span>\r\n<\/code><\/pre>\n<h2>\u81ea\u52a8\u6279\u5904\u7406<\/h2>\n<p>\u9996\u5148\uff0c\u6211\u60f3\u5148\u4ece\u81ea\u52a8\u6279\u5904\u7406\u5f00\u59cb\u89e3\u91ca\uff0c\u4f46\u5728\u6b64\u4e4b\u524d\uff0c\u6211\u4eec\u5c06\u8be6\u7ec6\u4e86\u89e3\u6279\u5904\u7406\u3002<\/p>\n<p>&#8220;\u4ec0\u4e48\u662f\u6279\u5904\u7406\uff1f<br \/>\n\u5b98\u65b9\u6587\u6863\u4e2d\u5bf9\u6279\u5904\u7406\u7684\u5b9a\u4e49\u5982\u4e0b\u3002&#8221;<\/p>\n<blockquote><p>\u6279\u5904\u7406\u662f\u6307React\u5c06\u591a\u4e2a\u72b6\u6001\u66f4\u65b0\u5206\u7ec4\u4ee5\u63d0\u9ad8\u6027\u80fd\uff0c\u5e76\u5728\u5355\u4e2a\u91cd\u65b0\u6e32\u67d3\u4e2d\u4e00\u8d77\u5904\u7406\u7684\u8fc7\u7a0b\u3002\uff08\u5f15\u81eaReact\u5b98\u65b9\u6587\u6863\uff09<\/p><\/blockquote>\n<p>\u4f46\u662f\u4ec5\u51ed\u8fd9\u6837\u8bf4\u53ef\u80fd\u4e0d\u5bb9\u6613\u7406\u89e3&#8230; \u603b\u7684\u6765\u8bf4\uff0c\u5373\u4f7f\u5728\u5904\u7406\u51fd\u6570\u4e2d\u8c03\u7528\u4e86set\u51fd\u6570\u7b49\uff0c\u4e5f\u4e0d\u9700\u8981\u6bcf\u6b21\u90fd\u8fdb\u884c\u6e32\u67d3\uff0c\u800c\u662f\u4f1a\u81ea\u52a8\u5730\u8fdb\u884c\u4e00\u5b9a\u7a0b\u5ea6\u7684\u6574\u7406\u548c\u7ec4\u5408\u3002<\/p>\n<p>\u300c\u6211\u60f3\u5403\u4e00\u4efd\u7092\u9762\u548c\u4e00\u676f\u7eff\u8336\u300d<\/p>\n<pre class=\"post-pre\"><code><span class=\"kd\">const<\/span> <span class=\"p\">[<\/span><span class=\"nx\">state1<\/span><span class=\"p\">,<\/span> <span class=\"nx\">setState1<\/span><span class=\"p\">]<\/span> <span class=\"o\">=<\/span> <span class=\"nf\">useState<\/span><span class=\"p\">(<\/span><span class=\"kc\">false<\/span><span class=\"p\">);<\/span>\r\n<span class=\"kd\">const<\/span> <span class=\"p\">[<\/span><span class=\"nx\">state2<\/span><span class=\"p\">,<\/span> <span class=\"nx\">setState2<\/span><span class=\"p\">]<\/span> <span class=\"o\">=<\/span> <span class=\"nf\">useState<\/span><span class=\"p\">(<\/span><span class=\"dl\">\"\"<\/span><span class=\"p\">);<\/span>\r\n<span class=\"kd\">const<\/span> <span class=\"p\">[<\/span><span class=\"nx\">state3<\/span><span class=\"p\">,<\/span> <span class=\"nx\">setState3<\/span><span class=\"p\">]<\/span> <span class=\"o\">=<\/span> <span class=\"nf\">useState<\/span><span class=\"p\">(<\/span><span class=\"mi\">0<\/span><span class=\"p\">);<\/span>\r\n<span class=\"o\">-----------------<\/span><span class=\"nx\">\u4e2d\u7565<\/span><span class=\"o\">--------------------<\/span>\r\n<span class=\"kd\">const<\/span> <span class=\"nx\">onClickHandler<\/span> <span class=\"o\">=<\/span> <span class=\"p\">()<\/span> <span class=\"o\">=&gt;<\/span> <span class=\"p\">{<\/span>\r\n  <span class=\"c1\">\/\/set\u95a2\u6570\u304c\uff13\u56de\u3082\u547c\u3070\u308c\u3066\u3044\u308b\u304c\u305d\u306e\u90fd\u5ea6\u30ec\u30f3\u30c0\u30ea\u30f3\u30b0\u304c\u8d70\u308b\u308f\u3051\u3067\u306f\u306a\u304f\u3001\u307e\u3068\u3081\u3066\u4e00\u56de\u306e\u307f\u8d70\u308b\u3088\u3046\u306b\u3057\u3066\u304f\u308c\u308b\uff08\u30d0\u30c3\u30c1\u30f3\u30b0\uff09<\/span>\r\n  <span class=\"nf\">setState1<\/span><span class=\"p\">(<\/span><span class=\"kc\">true<\/span><span class=\"p\">);<\/span>\r\n  <span class=\"nf\">setState2<\/span><span class=\"p\">(<\/span><span class=\"dl\">\"<\/span><span class=\"s2\">OK<\/span><span class=\"dl\">\"<\/span><span class=\"p\">);<\/span>\r\n  <span class=\"nf\">setState3<\/span><span class=\"p\">(<\/span><span class=\"mi\">1000<\/span><span class=\"p\">);<\/span>\r\n<span class=\"p\">};<\/span>\r\n<\/code><\/pre>\n<p>\u5b9e\u9645\u4e0a\uff0c\u5728React18\u4e4b\u524d\uff0c\u8fd9\u79cd\u81ea\u52a8\u6279\u5904\u7406\u5df2\u7ecf\u5b58\u5728\uff0c\u4f46\u572818\u7248\u4e2d\u53d1\u751f\u7684\u53d8\u5316\u662f\u9664\u4e86\u4e8b\u4ef6\u5904\u7406\u7a0b\u5e8f\u4e4b\u5916\uff0c\u8fd8\u5f00\u59cb\u8fdb\u884c\u6279\u5904\u7406\u3002<\/p>\n<h4>\u4ee5\u524d\uff0c\u9664\u4e86\u4e8b\u4ef6\u5904\u7406\u7a0b\u5e8f\u5916\uff0c\u5176\u4ed6\u90fd\u6ca1\u6709\u6279\u5904\u7406\u3002<\/h4>\n<blockquote><p>\u5728\u81ea\u52a8\u6279\u5904\u7406\u4e4b\u524d\uff0cReact\u53ea\u5bf9\u4e8b\u4ef6\u5904\u7406\u5668\u4e2d\u7684\u66f4\u65b0\u8fdb\u884c\u4e86\u6279\u5904\u7406\u3002Promise\u3001setTimeout\u3001\u672c\u5730\u4e8b\u4ef6\u5904\u7406\u5668\u4ee5\u53ca\u5176\u4ed6\u6240\u6709\u4e8b\u4ef6\u4e2d\u53d1\u751f\u7684\u66f4\u65b0\u9ed8\u8ba4\u60c5\u51b5\u4e0b\u90fd\u6ca1\u6709\u8fdb\u884c\u6279\u5904\u7406\u3002\uff08\u6765\u81ea\u5b98\u65b9\u6587\u6863\uff09<\/p><\/blockquote>\n<h4>\u6709\u4ec0\u4e48\u597d\u5904\uff1f<\/h4>\n<p>\u7531\u4e8e\u8fc7\u53bb\u53ef\u80fd\u5b58\u5728\u591a\u6b21\u8fd0\u884c\u5904\u7406\u4ee5\u53ca\u4ee3\u7801\u6548\u7387\u8f83\u4f4e\u7684\u60c5\u51b5\uff0c\u4f46\u5728\u6b64\u6b21\u4fee\u8ba2\u540e\uff0c\u6027\u80fd\u5f97\u5230\u4e86\u63d0\u9ad8\u3002<\/p>\n<p>\u987a\u4fbf\u63d0\u4e00\u53e5\uff0c\u5173\u4e8e\u8fd9\u6b21\u66f4\u65b0\uff0c\u6211\u4eec\u8fd9\u4e00\u8fb9\u65e0\u9700\u8bbe\u7f6e\u5373\u4f1a\u81ea\u52a8\u4f18\u5316\uff0c\u4f46\u8fd8\u662f\u597d\u597d\u77e5\u9053\u4e00\u4e0b\u6bd4\u8f83\u597d\u3002<\/p>\n<h2>\u5173\u4e8e\u8fc7\u6e21<\/h2>\n<p>\u5173\u4e8e\u8fc7\u6e21\u7684\u95ee\u9898<\/p>\n<p>\u7531\u4e8e\u8fd9\u6b21\u66f4\u65b0\u7684\u5185\u5bb9\u53d1\u751f\u4e86\u91cd\u5927\u53d8\u5316\uff0c\u6240\u4ee5\u9700\u8981\u7279\u522b\u5173\u6ce8\u7684\u662f\u8fd9\u4e2a Transition\u3002<\/p>\n<p>\u5728\u89e3\u91caTransition\u4e4b\u524d\uff0c\u6211\u60f3\u5148\u770b\u4e00\u4e0bTransition\u89e3\u51b3\u4e86\u54ea\u4e9b\u95ee\u9898\u3002<\/p>\n<h4>\u5728\u8fc7\u53bb\u7684\u5f00\u53d1\uff08\u5728\u5f15\u5165Transition\u4e4b\u524d\uff09<\/h4>\n<p>\u8fc7\u53bb\uff0c\u6ca1\u6709\u4f18\u5148\u7ea7\u987a\u5e8f\u8fdb\u884c\u66f4\u65b0\u3002\u8fd9\u5c31\u5bfc\u81f4\u4e86\u4ee5\u4e0b\u95ee\u9898\u7684\u51fa\u73b0\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u62bc\u3057\u305f\u304b\u3069\u3046\u304b\u4e0d\u5b89\u306b\u306a\u308b\u3088\u3046\u306a\u30dc\u30bf\u30f3<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u611f\u5ea6\u306e\u60aa\u3044\u3001\u7d5e\u308a\u8fbc\u307f\u306e\u305f\u3081\u306e\u30bf\u30b0<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u6570\u79d2\u7d4c\u3063\u305f\u5f8c\u306b\u5909\u5316\u306e\u3042\u308b\u8981\u7d20\u3001\u306a\u3069\u306a\u3069&#8230;<\/ul>\n<p>\u8fd9\u4e9bUX\u7684\u4e0d\u826f\u4f8b\u5b50\u90fd\u6709\u4e00\u4e2a\u5171\u540c\u70b9\uff0c\u90a3\u5c31\u662f\u5f53\u7528\u6237\u8fdb\u884c\u67d0\u79cd\u884c\u52a8\uff08\u4f8b\u5982\u70b9\u51fb\u3001\u805a\u7126\u7b49\uff09\u65f6\uff0c\u54cd\u5e94\u901f\u5ea6\u4f1a\u5f88\u6162\u3002<\/p>\n<p>\u4ee5\u4e0a\u6240\u63d0\u5230\u7684\u4f8b\u5b50\uff0c\u95ee\u9898\u7684\u539f\u56e0\u662f\u5728\u8fdb\u884c\u7e41\u91cd\u5904\u7406\u7684\u540c\u65f6\u8fd8\u8fdb\u884c\u4e86\u6e32\u67d3\u5904\u7406\u3002<\/p>\n<p>\u8fd9\u4e2a\u5f62\u8c61\u662f\u8fd9\u6837\u7684\u5427\uff1f<\/p>\n<p>\u56de\u5e94\uff1a\u300c\u7531\u4e8e\u5904\u7406\u6fc0\u70c8\u7684\u60c5\u611f\u800c\u611f\u5230\u75b2\u5026\uff0c\u65e0\u6cd5\u5e94\u5bf9\u7528\u6237\u7684\u884c\u52a8?\u300d<br \/>\n\u56de\u5e94\uff1a\u300c\u7ec8\u4e8e\u5904\u7406\u5b8c\u4e86\uff0c\u53ef\u4ee5\u5e94\u5bf9\u884c\u52a8\u4e86\u300d\u2190 \u8fd9\u5c31\u662f\u7528\u6237\u4f53\u9a8c\u4e0d\u597d\u7684\u539f\u56e0<\/p>\n<p>\u65e0\u8bba\u662f\u54ea\u4e2a\u5904\u7406\uff0c\u4ee5\u524d\u7684React\u90fd\u5c06\u5176\u89c6\u4e3a\u76f8\u540c\uff0c\u4e5f\u5c31\u662f\u8bf4\u65e0\u6cd5\u7ed9\u5b83\u4eec\u8bbe\u7f6e\u4f18\u5148\u7ea7\u3002<\/p>\n<p>\u56e0\u6b64\uff0c\u6211\u4eec\u65e0\u6cd5\u91c7\u53d6\u201c\u5148\u5904\u7406\u8fd9\u4e2a\u4efb\u52a1\uff0c\u56e0\u4e3a\u5b83\u6bd4\u8f83\u7e41\u91cd\uff0c\u7136\u540e\u518d\u5904\u7406\u90a3\u4e2a\u4efb\u52a1\u201d\u7684\u505a\u6cd5\u3002<\/p>\n<p>\u4e0d\u8fc7\uff0c\u8fd9\u6837\u505a\u4e0d\u4ec5\u5bf9\u7528\u6237\u4f53\u9a8c\u4e0d\u597d\uff0c\u8fd8\u4f1a\u5bfc\u81f4\u7528\u6237\u6d41\u5931\u7387\u589e\u52a0\u7684\u539f\u56e0\u3002<\/p>\n<blockquote><p>\u5bf9\u4e8e\u60f3\u8981\u8fdb\u4e00\u6b65\u4e86\u89e3\u4ee5\u4e0a\u5185\u5bb9\u7684\u4eba\u6765\u8bf4\uff0c\u6211\u63a8\u8350\u8bbf\u95ee\u8fd9\u4e2aGitHub\u9875\u9762\u3002<\/p><\/blockquote>\n<p>&nbsp;<\/p>\n<h3>\u89e3\u51b3\u65b9\u6848 c\u00e8)<\/h3>\n<p>\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e2a\u95ee\u9898\uff0c\u5f15\u5165\u4e86\u4e00\u4e2a\u65b0\u7684\u529f\u80fd\uff0c\u5373\u524d\u9762\u63d0\u5230\u7684Transition\u6982\u5ff5\u3002<\/p>\n<h4>Transition\u662f\u4ec0\u4e48\uff1f<\/h4>\n<blockquote><p>\u8f6c\u6362\uff08transition; \u9010\u6b65\u63a8\u79fb\uff09\u662fReact\u4e2d\u7684\u4e00\u4e2a\u65b0\u6982\u5ff5\uff0c\u7528\u4e8e\u533a\u5206\u7d27\u6025\u66f4\u65b0\u548c\u975e\u7d27\u6025\u66f4\u65b0\u3002<\/p><\/blockquote>\n<p>\u6211\u8ba4\u4e3a\uff0c\u901a\u8fc7\u65b0\u7684\u6982\u5ff5\u548c\u529f\u80fd\u4ea7\u751f\u7684Transition\u662f\u5bf9\u7528\u6237\u4f53\u9a8c\u6709\u76ca\u7684\u529f\u80fd\uff0c\u672a\u6765\u8fd9\u79cd\u529f\u80fd\u4f1a\u88ab\u666e\u904d\u7528\u4e8e\u5f00\u53d1\u4e2d\u3002<\/p>\n<p>\u7528\u4e00\u53e5\u8bdd\u6982\u62ec\u662f\u4ec0\u4e48\u610f\u601d\uff1f<br \/>\n\u4ee5\u5f80\u90fd\u662f\u5747\u7b49\u5730\u66f4\u65b0\uff0c\u73b0\u5728\u53ef\u4ee5\u6839\u636e\u4f18\u5148\u7ea7\u8fdb\u884c\u66f4\u65b0\u4e86\uff01<\/p>\n<p>\u7531\u4e8e\u8fd9\u4e00\u70b9\uff0c\u6211\u4eec\u53ef\u4ee5\u5411React\u4f20\u8fbe\u987a\u5e8f\uff0c\u4ece\u800c\u5bf9\u5176\u8fdb\u884c\u66f4\u65b0\u3002<\/p>\n<p>\u4f5c\u4e3a\u4e00\u4e2a\u5f62\u8c61\uff0c\u5e94\u8be5\u662f\u8fd9\u6837\u7684\u611f\u89c9\u5427\u3002<\/p>\n<p>\u7531\u4e8eReact\u300c\u6fc0\u6d3b\u548c\u7528\u6237\u64cd\u4f5c\u300d\u4e24\u4e2a\u65b9\u9762\u8981\u5904\u7406\uff0c\u4f46\u88ab\u8981\u6c42\u5148\u66f4\u65b0\u7528\u6237\u64cd\u4f5c\uff0c\u6240\u4ee5\u6211\u4eec\u5148\u4ece\u8fd9\u8fb9\u5f00\u59cb\u5904\u7406\u3002<\/p>\n<p>\u597d\u7684\uff0c\u7acb\u5373\u91c7\u53d6\u884c\u52a8\uff0c\u4e13\u6ce8\u4e8e\u6fc0\u70c8\u7684\u5904\u7406\u3002<\/p>\n<h3>\u5b9e\u9645\u4ee3\u7801\u7684\u5199\u6cd5<\/h3>\n<pre class=\"post-pre\"><code><span class=\"k\">import<\/span> <span class=\"p\">{<\/span> <span class=\"nx\">useTransition<\/span> <span class=\"p\">}<\/span> <span class=\"k\">from<\/span> <span class=\"dl\">'<\/span><span class=\"s1\">react<\/span><span class=\"dl\">'<\/span><span class=\"p\">;<\/span>\r\n<span class=\"c1\">\/\/ ...<\/span>\r\n\r\n<span class=\"kd\">function<\/span> <span class=\"nf\">ClassicAssociationsBubbles<\/span><span class=\"p\">({<\/span><span class=\"nx\">associations<\/span><span class=\"p\">})<\/span> <span class=\"p\">{<\/span>\r\n  <span class=\"c1\">\/\/ New hook in React 18<\/span>\r\n  <span class=\"kd\">const<\/span> <span class=\"p\">[<\/span><span class=\"nx\">isPending<\/span><span class=\"p\">,<\/span> <span class=\"nx\">startTransition<\/span><span class=\"p\">]<\/span> <span class=\"o\">=<\/span> <span class=\"nf\">useTransition<\/span><span class=\"p\">();<\/span>\r\n  \r\n  <span class=\"kd\">const<\/span> <span class=\"p\">[<\/span><span class=\"nx\">minScore<\/span><span class=\"p\">,<\/span> <span class=\"nx\">setMinScore<\/span><span class=\"p\">]<\/span> <span class=\"o\">=<\/span> <span class=\"nf\">useState<\/span><span class=\"p\">(<\/span><span class=\"mf\">0.1<\/span><span class=\"p\">);<\/span>\r\n  <span class=\"kd\">const<\/span> <span class=\"nx\">data<\/span> <span class=\"o\">=<\/span> <span class=\"nf\">computeData<\/span><span class=\"p\">(<\/span><span class=\"nx\">minScore<\/span><span class=\"p\">);<\/span>\r\n\r\n  <span class=\"k\">return <\/span><span class=\"p\">(<\/span>\r\n    <span class=\"o\">&lt;&gt;<\/span>\r\n      <span class=\"o\">&lt;<\/span><span class=\"nx\">FastSlider<\/span> <span class=\"nx\">defaultValue<\/span><span class=\"o\">=<\/span><span class=\"p\">{<\/span><span class=\"mf\">0.1<\/span><span class=\"p\">}<\/span> <span class=\"nx\">onChange<\/span><span class=\"o\">=<\/span><span class=\"p\">{<\/span><span class=\"nx\">val<\/span> <span class=\"o\">=&gt;<\/span> <span class=\"p\">{<\/span>\r\n        <span class=\"c1\">\/\/ Update the results, in a transition.<\/span>\r\n        <span class=\"nf\">startTransition<\/span><span class=\"p\">(()<\/span> <span class=\"o\">=&gt;<\/span> <span class=\"p\">{<\/span>\r\n          <span class=\"nf\">setMinScore<\/span><span class=\"p\">(<\/span><span class=\"nx\">val<\/span><span class=\"p\">);<\/span>\r\n        <span class=\"p\">});<\/span>\r\n      <span class=\"p\">}<\/span><span class=\"sr\">\/<\/span><span class=\"err\">&gt;\r\n<\/span>      <span class=\"o\">&lt;<\/span><span class=\"nx\">ExpensiveChart<\/span>\r\n        <span class=\"c1\">\/\/ Use the isPending flag to add a pending class.<\/span>\r\n        <span class=\"nx\">className<\/span><span class=\"o\">=<\/span><span class=\"p\">{<\/span><span class=\"nx\">isPending<\/span> <span class=\"p\">?<\/span> <span class=\"dl\">'<\/span><span class=\"s1\">pending<\/span><span class=\"dl\">'<\/span> <span class=\"p\">:<\/span> <span class=\"dl\">'<\/span><span class=\"s1\">done<\/span><span class=\"dl\">'<\/span><span class=\"p\">}<\/span>\r\n        <span class=\"nx\">data<\/span><span class=\"o\">=<\/span><span class=\"p\">{<\/span><span class=\"nx\">data<\/span><span class=\"p\">}<\/span>\r\n      <span class=\"sr\">\/<\/span><span class=\"err\">&gt;\r\n<\/span>    <span class=\"o\">&lt;<\/span><span class=\"sr\">\/<\/span><span class=\"err\">&gt;\r\n<\/span>  <span class=\"p\">);<\/span>\r\n<span class=\"p\">}<\/span>\r\n<span class=\"c1\">\/\/\u3053\u306e\u30b3\u30fc\u30c9\u306fReal world example: adding startTransition for slow renders #65\u304b\u3089\u5f15\u7528\u3055\u305b\u3066\u3044\u305f\u3060\u304d\u307e\u3057\u305f\u3002<\/span>\r\n<\/code><\/pre>\n<p>\u53ef\u4ee5\u4f7f\u7528useTransition\u6765\u7f16\u5199\u7c7b\u4f3c\u4e8e\u4e0a\u8ff0\u4ee3\u7801\u7684\u529f\u80fd\uff0c\u5e76\u4e14\u88abstartTransition\u5305\u88f9\u7684\u8bbe\u7f6e\u51fd\u6570\u7b49\u5c06\u5177\u6709\u8f83\u4f4e\u7684\u4f18\u5148\u7ea7\u5e76\u88ab\u5904\u7406\u3002<\/p>\n<p>\u5982\u679c\u4f60\u60f3\u66f4\u52a0\u8be6\u7ec6\u5730\u4e86\u89e3\uff0c\u5e76\u4e14\u80fd\u591f\u5b9e\u9645\u4f53\u9a8c\u7684\u8bdd\uff0c\u6211\u63a8\u8350\u53c2\u8003\u4ee5\u4e0b\u76f8\u5173\u6587\u7ae0\u2728<\/p>\n<p>&nbsp;<\/p>\n<h3>\u7ed3\u675f<\/h3>\n<p>\u6211\u4e2a\u4eba\u89c9\u5f97 React18 \u8fd9\u6b21\u66f4\u65b0\u53ef\u80fd\u4f1a\u5f7b\u5e95\u6539\u53d8\u672a\u6765\u7684\u5f00\u53d1\u4f53\u9a8c\uff0c\u56e0\u6b64\u6211\u611f\u5230\u4e86\u4e00\u79cd\u9884\u611f\uff0c\u6240\u4ee5\u6211\u5e0c\u671b\u80fd\u7d27\u8ddf\u6f6e\u6d41\uff0c\u52aa\u529b\u8d76\u4e0a\uff01<\/p>\n<h3>\u8bf7\u63d0\u4f9b\u53c2\u8003\u8d44\u6599\u3002<\/h3>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148 \u867d\u7136\u6211\u60f3\u5b66\u4e60React18\uff0c\u4f46\u65f6\u95f4\u5df2\u7ecf\u8fc7\u53bb\u4e86\u4e00\u6bb5\u65e5\u5b50\u3002 \u7136\u800c\uff0c\u5728\u6b64\u671f\u95f4\uff0c\u80af\u5b9a\u6709\u4e9b\u4eba\u5df2\u7ecf\u8ffd\u8d76\u4e0a\u4e86React [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-38320","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>\u4ece\u73b0\u5728\u5f00\u59cb\u8d76\u4e0aReact18\uff08\u4e0a\u7bc7\uff09 - 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\/\u4ece\u73b0\u5728\u5f00\u59cb\u8d76\u4e0areact18\uff08\u4e0a\u7bc7\uff09\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4ece\u73b0\u5728\u5f00\u59cb\u8d76\u4e0aReact18\uff08\u4e0a\u7bc7\uff09\" \/>\n<meta property=\"og:description\" content=\"\u9996\u5148 \u867d\u7136\u6211\u60f3\u5b66\u4e60React18\uff0c\u4f46\u65f6\u95f4\u5df2\u7ecf\u8fc7\u53bb\u4e86\u4e00\u6bb5\u65e5\u5b50\u3002 \u7136\u800c\uff0c\u5728\u6b64\u671f\u95f4\uff0c\u80af\u5b9a\u6709\u4e9b\u4eba\u5df2\u7ecf\u8ffd\u8d76\u4e0a\u4e86React [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u4ece\u73b0\u5728\u5f00\u59cb\u8d76\u4e0areact18\uff08\u4e0a\u7bc7\uff09\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-10-02T01:51:31+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-30T07:53:01+00:00\" \/>\n<meta name=\"author\" content=\"\u96c5, \u609f\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u96c5, \u609f\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bb%8e%e7%8e%b0%e5%9c%a8%e5%bc%80%e5%a7%8b%e8%b5%b6%e4%b8%8areact18%ef%bc%88%e4%b8%8a%e7%af%87%ef%bc%89\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bb%8e%e7%8e%b0%e5%9c%a8%e5%bc%80%e5%a7%8b%e8%b5%b6%e4%b8%8areact18%ef%bc%88%e4%b8%8a%e7%af%87%ef%bc%89\/\",\"name\":\"\u4ece\u73b0\u5728\u5f00\u59cb\u8d76\u4e0aReact18\uff08\u4e0a\u7bc7\uff09 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-10-02T01:51:31+00:00\",\"dateModified\":\"2024-04-30T07:53:01+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bb%8e%e7%8e%b0%e5%9c%a8%e5%bc%80%e5%a7%8b%e8%b5%b6%e4%b8%8areact18%ef%bc%88%e4%b8%8a%e7%af%87%ef%bc%89\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bb%8e%e7%8e%b0%e5%9c%a8%e5%bc%80%e5%a7%8b%e8%b5%b6%e4%b8%8areact18%ef%bc%88%e4%b8%8a%e7%af%87%ef%bc%89\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bb%8e%e7%8e%b0%e5%9c%a8%e5%bc%80%e5%a7%8b%e8%b5%b6%e4%b8%8areact18%ef%bc%88%e4%b8%8a%e7%af%87%ef%bc%89\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4ece\u73b0\u5728\u5f00\u59cb\u8d76\u4e0aReact18\uff08\u4e0a\u7bc7\uff09\"}]},{\"@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\/f044a4b7fa4ee2701702942002419ca6\",\"name\":\"\u96c5, \u609f\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"caption\":\"\u96c5, \u609f\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bb%8e%e7%8e%b0%e5%9c%a8%e5%bc%80%e5%a7%8b%e8%b5%b6%e4%b8%8areact18%ef%bc%88%e4%b8%8a%e7%af%87%ef%bc%89\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u4ece\u73b0\u5728\u5f00\u59cb\u8d76\u4e0aReact18\uff08\u4e0a\u7bc7\uff09 - 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\/\u4ece\u73b0\u5728\u5f00\u59cb\u8d76\u4e0areact18\uff08\u4e0a\u7bc7\uff09\/","og_locale":"zh_CN","og_type":"article","og_title":"\u4ece\u73b0\u5728\u5f00\u59cb\u8d76\u4e0aReact18\uff08\u4e0a\u7bc7\uff09","og_description":"\u9996\u5148 \u867d\u7136\u6211\u60f3\u5b66\u4e60React18\uff0c\u4f46\u65f6\u95f4\u5df2\u7ecf\u8fc7\u53bb\u4e86\u4e00\u6bb5\u65e5\u5b50\u3002 \u7136\u800c\uff0c\u5728\u6b64\u671f\u95f4\uff0c\u80af\u5b9a\u6709\u4e9b\u4eba\u5df2\u7ecf\u8ffd\u8d76\u4e0a\u4e86React [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u4ece\u73b0\u5728\u5f00\u59cb\u8d76\u4e0areact18\uff08\u4e0a\u7bc7\uff09\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-10-02T01:51:31+00:00","article_modified_time":"2024-04-30T07:53:01+00:00","author":"\u96c5, \u609f","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u96c5, \u609f","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bb%8e%e7%8e%b0%e5%9c%a8%e5%bc%80%e5%a7%8b%e8%b5%b6%e4%b8%8areact18%ef%bc%88%e4%b8%8a%e7%af%87%ef%bc%89\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bb%8e%e7%8e%b0%e5%9c%a8%e5%bc%80%e5%a7%8b%e8%b5%b6%e4%b8%8areact18%ef%bc%88%e4%b8%8a%e7%af%87%ef%bc%89\/","name":"\u4ece\u73b0\u5728\u5f00\u59cb\u8d76\u4e0aReact18\uff08\u4e0a\u7bc7\uff09 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-10-02T01:51:31+00:00","dateModified":"2024-04-30T07:53:01+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bb%8e%e7%8e%b0%e5%9c%a8%e5%bc%80%e5%a7%8b%e8%b5%b6%e4%b8%8areact18%ef%bc%88%e4%b8%8a%e7%af%87%ef%bc%89\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e4%bb%8e%e7%8e%b0%e5%9c%a8%e5%bc%80%e5%a7%8b%e8%b5%b6%e4%b8%8areact18%ef%bc%88%e4%b8%8a%e7%af%87%ef%bc%89\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bb%8e%e7%8e%b0%e5%9c%a8%e5%bc%80%e5%a7%8b%e8%b5%b6%e4%b8%8areact18%ef%bc%88%e4%b8%8a%e7%af%87%ef%bc%89\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u4ece\u73b0\u5728\u5f00\u59cb\u8d76\u4e0aReact18\uff08\u4e0a\u7bc7\uff09"}]},{"@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\/f044a4b7fa4ee2701702942002419ca6","name":"\u96c5, \u609f","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","caption":"\u96c5, \u609f"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%bb%8e%e7%8e%b0%e5%9c%a8%e5%bc%80%e5%a7%8b%e8%b5%b6%e4%b8%8areact18%ef%bc%88%e4%b8%8a%e7%af%87%ef%bc%89\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/38320","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\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=38320"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/38320\/revisions"}],"predecessor-version":[{"id":92842,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/38320\/revisions\/92842"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=38320"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=38320"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=38320"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}