{"id":48582,"date":"2025-07-30T12:42:17","date_gmt":"2025-07-30T04:42:17","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/48582.html"},"modified":"2025-07-30T12:42:17","modified_gmt":"2025-07-30T04:42:17","slug":"react-%e6%9c%8d%e5%8a%a1%e5%99%a8%e7%bb%84%e4%bb%b6-rsc","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/48582.html","title":{"rendered":"React \u670d\u52a1\u5668\u7ec4\u4ef6 (RSC)"},"content":{"rendered":"<\/p>\n<h4>\u6587\u7ae0\u76ee\u5f55<\/h4>\n<ul>\n<li>\u524d\u8a00<\/li>\n<li>\n<ul>\n<li>\n<ul>\n<li>1. \u4ec0\u4e48\u662f\u670d\u52a1\u5668\u7ec4\u4ef6 (Server Components)?<\/li>\n<li>2. \u670d\u52a1\u5668\u7ec4\u4ef6\u7684\u6838\u5fc3\u89c4\u5219<\/li>\n<li>\n<ul>\n<li>(1) \u5f02\u6b65\u6027 (&#096;async\/await&#096;)<\/li>\n<li>(2) \u65e0\u5ba2\u6237\u7aef\u4ea4\u4e92<\/li>\n<li>(3) \u6e32\u67d3\u9650\u5236<\/li>\n<\/ul>\n<\/li>\n<li>3. \u4e0e\u5ba2\u6237\u7aef\u7ec4\u4ef6\u7684\u534f\u4f5c<\/li>\n<li>\n<ul>\n<li>\u7ec4\u5408\u6a21\u5f0f<\/li>\n<li>Props \u4f20\u9012\u89c4\u5219<\/li>\n<\/ul>\n<\/li>\n<li>4. \u4f7f\u7528\u573a\u666f<\/li>\n<li>5. \u6587\u4ef6\u547d\u540d\u7ea6\u5b9a<\/li>\n<li>6. \u5e38\u89c1\u8bef\u533a<\/li>\n<li>7. \u793a\u4f8b\u4ee3\u7801<\/li>\n<li>\n<ul>\n<li>\u670d\u52a1\u7aef\u7ec4\u4ef6&#xff08;\u83b7\u53d6\u6570\u636e&#xff09;&#xff1a;<\/li>\n<li>\u5ba2\u6237\u7aef\u7ec4\u4ef6&#xff08;\u5904\u7406\u4ea4\u4e92&#xff09;&#xff1a;<\/li>\n<\/ul>\n<\/li>\n<li>\u5173\u952e\u603b\u7ed3<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<hr \/>\n<h2>\u524d\u8a00<\/h2>\n<p>React \u5b98\u65b9\u6587\u6863\u4e2d server-components \u9875\u9762\u8be6\u7ec6\u89e3\u91ca\u4e86 React \u670d\u52a1\u5668\u7ec4\u4ef6 (RSC) \u7684\u6838\u5fc3\u6982\u5ff5\u3001\u89c4\u5219\u548c\u4f7f\u7528\u573a\u666f\u3002\u4ee5\u4e0b\u662f\u8be5\u9875\u9762\u7684\u6838\u5fc3\u5185\u5bb9\u89e3\u6790&#xff1a;<\/p>\n<hr \/>\n<h4>1. \u4ec0\u4e48\u662f\u670d\u52a1\u5668\u7ec4\u4ef6 (Server Components)?<\/h4>\n<ul>\n<li>\u8fd0\u884c\u73af\u5883&#xff1a;\u4ec5\u5728\u670d\u52a1\u7aef\u6267\u884c&#xff0c;\u4e0d\u4f1a\u5c06\u7ec4\u4ef6\u4ee3\u7801&#xff08;JSX\u3001\u903b\u8f91\u3001\u4f9d\u8d56&#xff09;\u53d1\u9001\u5230\u5ba2\u6237\u7aef\u3002<\/li>\n<li>\u76ee\u7684&#xff1a;\n<ul>\n<li>\u51cf\u5c11\u5ba2\u6237\u7aef JS \u4f53\u79ef&#xff0c;\u63d0\u5347\u52a0\u8f7d\u6027\u80fd\u3002<\/li>\n<li>\u76f4\u63a5\u8bbf\u95ee\u670d\u52a1\u7aef\u8d44\u6e90&#xff08;\u6570\u636e\u5e93\u3001API\u3001\u6587\u4ef6\u7cfb\u7edf&#xff09;\u3002<\/li>\n<li>\u81ea\u52a8\u4ee3\u7801\u5206\u5272&#xff0c;\u907f\u514d\u624b\u52a8\u4f18\u5316\u3002<\/li>\n<\/ul>\n<\/li>\n<li>\u8f93\u51fa&#xff1a;\u5c06\u6e32\u67d3\u540e\u7684 UI \u63cf\u8ff0&#xff08;\u975e\u53ef\u4ea4\u4e92 JS&#xff09; \u53d1\u9001\u7ed9\u5ba2\u6237\u7aef&#xff0c;\u7c7b\u4f3c HTML \u6d41\u3002<\/li>\n<\/ul>\n<hr \/>\n<h4>2. \u670d\u52a1\u5668\u7ec4\u4ef6\u7684\u6838\u5fc3\u89c4\u5219<\/h4>\n<h5>(1) \u5f02\u6b65\u6027 (async\/await)<\/h5>\n<ul>\n<li>\u6240\u6709\u670d\u52a1\u5668\u7ec4\u4ef6\u5fc5\u987b\u662f async \u51fd\u6570&#xff0c;\u53ef\u4f7f\u7528 await \u76f4\u63a5\u83b7\u53d6\u6570\u636e&#xff1a;<\/li>\n<\/ul>\n<p>  <span class=\"token keyword\">async<\/span> <span class=\"token keyword\">function<\/span> <span class=\"token function\">MyServerComponent<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token keyword\">const<\/span> data <span class=\"token operator\">&#061;<\/span> <span class=\"token keyword\">await<\/span> <span class=\"token function\">fetchData<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span> <span class=\"token comment\">\/\/ \u76f4\u63a5\u8bbf\u95ee\u6570\u636e\u5e93\/API<\/span><br \/>\n    <span class=\"token keyword\">return<\/span> <span class=\"token operator\">&lt;<\/span>div<span class=\"token operator\">&gt;<\/span><span class=\"token punctuation\">{<\/span>data<span class=\"token punctuation\">}<\/span><span class=\"token operator\">&lt;<\/span><span class=\"token operator\">\/<\/span>div<span class=\"token operator\">&gt;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><\/p>\n<p>    <span class=\"token keyword\">export<\/span> <span class=\"token keyword\">default<\/span> <span class=\"token keyword\">async<\/span> <span class=\"token keyword\">function<\/span> <span class=\"token function\">RootLayout<\/span><span class=\"token punctuation\">(<\/span><span class=\"token parameter\"><span class=\"token punctuation\">{<\/span> children<span class=\"token punctuation\">,<\/span> params <span class=\"token punctuation\">}<\/span><\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token keyword\">const<\/span> resolvedParams <span class=\"token operator\">&#061;<\/span> <span class=\"token keyword\">await<\/span> params<span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token keyword\">const<\/span> <span class=\"token punctuation\">{<\/span> serializedResources <span class=\"token punctuation\">}<\/span> <span class=\"token operator\">&#061;<\/span> <span class=\"token keyword\">await<\/span> <span class=\"token function\">getTranslation<\/span><span class=\"token punctuation\">(<\/span>resolvedParams<span class=\"token punctuation\">.<\/span>locale<span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;common&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token comment\">\/\/ &#8230;\u6e32\u67d3\u903b\u8f91<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><\/p>\n<p>\u8fd9\u91cc\u76f4\u63a5\u5728\u7ec4\u4ef6\u4f53\u5185\u7528 await \u83b7\u53d6\u670d\u52a1\u7aef\u6570\u636e&#xff0c;\u7136\u540e\u5c06\u6570\u636e\u4f20\u9012\u7ed9\u5b50\u7ec4\u4ef6\u3002<\/p>\n<h5>(2) \u65e0\u5ba2\u6237\u7aef\u4ea4\u4e92<\/h5>\n<ul>\n<li>\u7981\u6b62\u4f7f\u7528 Hooks&#xff1a;\u5982 useState, useEffect, useContext \u7b49\u3002<\/li>\n<li>\u65e0\u6d4f\u89c8\u5668 API&#xff1a;\u65e0\u6cd5\u8bbf\u95ee window, document, localStorage\u3002<\/li>\n<li>\u65e0\u4e8b\u4ef6\u5904\u7406&#xff1a;\u4e0d\u80fd\u5b9a\u4e49 onClick, onChange \u7b49\u4ea4\u4e92\u903b\u8f91\u3002<\/li>\n<\/ul>\n<p>Server Component&#xff08;\u670d\u52a1\u5668\u7ec4\u4ef6&#xff09;&#xff1a;<\/p>\n<ul>\n<li>\u53ea\u80fd\u5728\u670d\u52a1\u5668\u7aef\u6e32\u67d3&#xff0c;\u4e0d\u80fd\u5305\u542b\u5982 useState\u3001useEffect\u3001\u4e8b\u4ef6\u5904\u7406&#xff08;\u5982 onClick&#xff09;\u7b49\u5ba2\u6237\u7aef\u4ea4\u4e92\u903b\u8f91\u3002<\/li>\n<li>\u4e0d\u80fd\u8bbf\u95ee\u6d4f\u89c8\u5668 API&#xff08;\u5982 window\u3001document&#xff09;\u3002<\/li>\n<li>\u53ea\u80fd\u901a\u8fc7 props \u5411\u4e0b\u4f20\u9012\u6570\u636e&#xff0c;\u4e0d\u80fd\u54cd\u5e94\u7528\u6237\u5728\u6d4f\u89c8\u5668\u4e2d\u7684\u76f4\u63a5\u64cd\u4f5c\u3002<\/li>\n<li>\u9002\u5408\u505a\u6570\u636e\u83b7\u53d6\u3001\u670d\u52a1\u7aef\u6e32\u67d3\u3001\u9759\u6001\u5185\u5bb9\u8f93\u51fa\u7b49\u3002<\/li>\n<\/ul>\n<p>Client Component&#xff08;\u5ba2\u6237\u7aef\u7ec4\u4ef6&#xff09;&#xff1a;<\/p>\n<ul>\n<li>\u4ee5 \u2018use client\u2019 \u5f00\u5934&#xff0c;\u53ef\u4ee5\u4f7f\u7528 React \u7684\u6240\u6709\u5ba2\u6237\u7aef\u7279\u6027&#xff08;\u5982 useState\u3001useEffect\u3001\u4e8b\u4ef6\u5904\u7406\u7b49&#xff09;\u3002<\/li>\n<li>\u53ef\u4ee5\u8bbf\u95ee\u6d4f\u89c8\u5668 API\u3002<\/li>\n<li>\u9002\u5408\u505a\u4ea4\u4e92\u3001\u52a8\u753b\u3001\u8868\u5355\u3001\u6309\u94ae\u7b49\u9700\u8981\u54cd\u5e94\u7528\u6237\u64cd\u4f5c\u7684\u5185\u5bb9\u3002<\/li>\n<\/ul>\n<h5>(3) \u6e32\u67d3\u9650\u5236<\/h5>\n<ul>\n<li>\u53ea\u80fd\u8fd4\u56de \u53ef\u5e8f\u5217\u5316\u6570\u636e \u6216 \u5ba2\u6237\u7aef\u7ec4\u4ef6&#xff1a;<span class=\"token comment\">\/\/ \u2705 \u5408\u6cd5&#xff1a;\u4f20\u9012\u6570\u636e\u7ed9\u5ba2\u6237\u7aef\u7ec4\u4ef6<\/span><br \/>\n<span class=\"token keyword\">function<\/span> <span class=\"token function\">ServerComponent<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token keyword\">return<\/span> <span class=\"token operator\">&lt;<\/span>ClientComponent data<span class=\"token operator\">&#061;<\/span><span class=\"token punctuation\">{<\/span><span class=\"token operator\">&#8230;<\/span><span class=\"token punctuation\">}<\/span> <span class=\"token operator\">\/<\/span><span class=\"token operator\">&gt;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p><span class=\"token comment\">\/\/ \u274c \u975e\u6cd5&#xff1a;\u76f4\u63a5\u6e32\u67d3\u6d4f\u89c8\u5668 API \u76f8\u5173\u7ec4\u4ef6<\/span><br \/>\n<span class=\"token keyword\">function<\/span> <span class=\"token function\">InvalidComponent<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token keyword\">return<\/span> <span class=\"token operator\">&lt;<\/span>input onChange<span class=\"token operator\">&#061;<\/span><span class=\"token punctuation\">{<\/span><span class=\"token operator\">&#8230;<\/span><span class=\"token punctuation\">}<\/span> <span class=\"token operator\">\/<\/span><span class=\"token operator\">&gt;<\/span><span class=\"token punctuation\">;<\/span> <span class=\"token comment\">\/\/ \u4e8b\u4ef6\u5904\u7406\u53ea\u80fd\u5728\u5ba2\u6237\u7aef<\/span><br \/>\n<span class=\"token punctuation\">}<\/span>\n <\/li>\n<\/ul>\n<hr \/>\n<h4>3. \u4e0e\u5ba2\u6237\u7aef\u7ec4\u4ef6\u7684\u534f\u4f5c<\/h4>\n<h5>\u7ec4\u5408\u6a21\u5f0f<\/h5>\n<ul>\n<li>\u670d\u52a1\u5668\u7ec4\u4ef6\u53ef\u4f5c\u4e3a \u7236\u7ec4\u4ef6 \u6e32\u67d3\u5ba2\u6237\u7aef\u7ec4\u4ef6&#xff1a;<\/li>\n<\/ul>\n<p>  <span class=\"token comment\">\/\/ ServerComponent.server.js<\/span><br \/>\n  <span class=\"token keyword\">import<\/span> ClientComponent <span class=\"token keyword\">from<\/span> <span class=\"token string\">&#039;.\/ClientComponent.client&#039;<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<p>  <span class=\"token keyword\">export<\/span> <span class=\"token keyword\">default<\/span> <span class=\"token keyword\">function<\/span> <span class=\"token function\">ServerComponent<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token keyword\">return<\/span> <span class=\"token punctuation\">(<\/span><br \/>\n      <span class=\"token operator\">&lt;<\/span>div<span class=\"token operator\">&gt;<\/span><br \/>\n        <span class=\"token operator\">&lt;<\/span>h1<span class=\"token operator\">&gt;<\/span>\u670d\u52a1\u7aef\u6e32\u67d3<span class=\"token operator\">&lt;<\/span><span class=\"token operator\">\/<\/span>h1<span class=\"token operator\">&gt;<\/span><br \/>\n        <span class=\"token operator\">&lt;<\/span>ClientComponent <span class=\"token operator\">\/<\/span><span class=\"token operator\">&gt;<\/span> <span class=\"token punctuation\">{<\/span><span class=\"token comment\">\/* \u5d4c\u5957\u5ba2\u6237\u7aef\u7ec4\u4ef6 *\/<\/span><span class=\"token punctuation\">}<\/span><br \/>\n      <span class=\"token operator\">&lt;<\/span><span class=\"token operator\">\/<\/span>div<span class=\"token operator\">&gt;<\/span><br \/>\n    <span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><\/p>\n<p>  <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>I18nProviderWrapper<\/span> <span class=\"token attr-name\">locale<\/span><span class=\"token attr-value\"><span class=\"token punctuation attr-equals\">&#061;<\/span>{resolvedParams.locale}<\/span> <span class=\"token attr-name\">initialResources<\/span><span class=\"token attr-value\"><span class=\"token punctuation attr-equals\">&#061;<\/span>{serializedResources}<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n    {children}<br \/>\n  <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>I18nProviderWrapper<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><\/p>\n<p>src\/components\/I18nProviderWrapper.tsx \u662f\u4e00\u4e2a\u5ba2\u6237\u7aef\u7ec4\u4ef6&#xff08;\u6587\u4ef6\u9876\u90e8\u6709 \u2018use client\u2019&#xff09;&#xff0c;\u5b83\u88ab\u670d\u52a1\u5668\u7ec4\u4ef6 layout.tsx \u4f5c\u4e3a\u5b50\u7ec4\u4ef6\u76f4\u63a5\u6e32\u67d3\u3002\u7b26\u5408 Next.js \u63a8\u8350\u7684\u5206\u5c42\u67b6\u6784&#xff08;Server Component \u4f5c\u4e3a\u7236&#xff0c;Client Component \u4f5c\u4e3a\u5b50&#xff09;<\/p>\n<h5>Props \u4f20\u9012\u89c4\u5219<\/h5>\n<ul>\n<li>\u4f20\u9012\u7ed9\u5ba2\u6237\u7aef\u7ec4\u4ef6\u7684 props \u5fc5\u987b\u662f \u53ef\u5e8f\u5217\u5316\u7684&#xff1a;\n<ul>\n<li>\u2705 \u57fa\u672c\u7c7b\u578b&#xff1a;string, number, boolean<\/li>\n<li>\u2705 \u7b80\u5355\u5bf9\u8c61\/\u6570\u7ec4<\/li>\n<li>\u2705 JSX&#xff08;\u4f5c\u4e3a children&#xff09;<\/li>\n<li>\u274c \u51fd\u6570\u3001\u7c7b\u5b9e\u4f8b\u3001Symbol \u7b49\u4e0d\u53ef\u5e8f\u5217\u5316\u6570\u636e\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<hr \/>\n<h4>4. \u4f7f\u7528\u573a\u666f<\/h4>\n<table>\n<tr>\u9002\u5408\u670d\u52a1\u5668\u7ec4\u4ef6\u9002\u5408\u5ba2\u6237\u7aef\u7ec4\u4ef6<\/tr>\n<tbody>\n<tr>\n<td>\u6570\u636e\u83b7\u53d6&#xff08;DB\/API&#xff09;<\/td>\n<td>\u4ea4\u4e92\u903b\u8f91&#xff08;\u8868\u5355\u3001\u52a8\u753b&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u9759\u6001\u5185\u5bb9\u6e32\u67d3<\/td>\n<td>\u4f7f\u7528 Hooks&#xff08;\u72b6\u6001\u3001\u526f\u4f5c\u7528&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u654f\u611f\u903b\u8f91&#xff08;\u8bbf\u95ee\u5bc6\u94a5&#xff09;<\/td>\n<td>\u6d4f\u89c8\u5668 API&#xff08;localStorage&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u51cf\u5c11\u5ba2\u6237\u7aef JS \u4f53\u79ef<\/td>\n<td>\u4e8b\u4ef6\u5904\u7406&#xff08;onClick \u7b49&#xff09;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h4>5. \u6587\u4ef6\u547d\u540d\u7ea6\u5b9a<\/h4>\n<ul>\n<li>\u670d\u52a1\u7aef\u7ec4\u4ef6&#xff1a;*.server.js (\u6216 .server.jsx, .server.tsx)<\/li>\n<li>\u5ba2\u6237\u7aef\u7ec4\u4ef6&#xff1a;*.client.js (\u6216 .client.jsx, .client.tsx)<\/li>\n<li>\u901a\u7528\u7ec4\u4ef6&#xff1a;\u65e0\u540e\u7f00&#xff0c;\u4f46\u9700\u5728\u5ba2\u6237\u7aef\u7ec4\u4ef6\u4e2d\u663e\u5f0f\u5bfc\u5165\u3002<\/li>\n<\/ul>\n<hr \/>\n<h4>6. \u5e38\u89c1\u8bef\u533a<\/h4>\n<ul>\n<li>\u8bef\u533a&#xff1a;\u201c\u670d\u52a1\u7aef\u7ec4\u4ef6\u53ef\u66ff\u4ee3 SSR\u201d\u3002\n<ul>\n<li>\u7ea0\u6b63&#xff1a;RSC \u4e0e SSR \u4e92\u8865&#xff1a;\n<ul>\n<li>SSR&#xff1a;\u5c06\u5ba2\u6237\u7aef\u7ec4\u4ef6\u521d\u59cb HTML \u5feb\u901f\u6e32\u67d3\u5230\u6d4f\u89c8\u5668\u3002<\/li>\n<li>RSC&#xff1a;\u5728\u670d\u52a1\u7aef\u751f\u6210\u9759\u6001\u5185\u5bb9&#xff0c;\u51cf\u5c11\u5ba2\u6237\u7aef\u8d1f\u62c5\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<\/li>\n<li>\u8bef\u533a&#xff1a;\u201c\u670d\u52a1\u5668\u7ec4\u4ef6\u53ef\u5904\u7406\u7528\u6237\u4ea4\u4e92\u201d\u3002\n<ul>\n<li>\u7ea0\u6b63&#xff1a;\u4ea4\u4e92\u5fc5\u987b\u4ea4\u7ed9\u5ba2\u6237\u7aef\u7ec4\u4ef6\u5904\u7406\u3002<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<hr \/>\n<h4>7. \u793a\u4f8b\u4ee3\u7801<\/h4>\n<h5>\u670d\u52a1\u7aef\u7ec4\u4ef6&#xff08;\u83b7\u53d6\u6570\u636e&#xff09;&#xff1a;<\/h5>\n<p><span class=\"token comment\">\/\/ ProductDetails.server.js<\/span><br \/>\n<span class=\"token keyword\">async<\/span> <span class=\"token keyword\">function<\/span> <span class=\"token function\">ProductDetails<\/span><span class=\"token punctuation\">(<\/span><span class=\"token parameter\"><span class=\"token punctuation\">{<\/span> id <span class=\"token punctuation\">}<\/span><\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token keyword\">const<\/span> product <span class=\"token operator\">&#061;<\/span> <span class=\"token keyword\">await<\/span> db<span class=\"token punctuation\">.<\/span>products<span class=\"token punctuation\">.<\/span><span class=\"token function\">get<\/span><span class=\"token punctuation\">(<\/span>id<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span> <span class=\"token comment\">\/\/ \u76f4\u63a5\u8bbf\u95ee\u6570\u636e\u5e93<\/span><br \/>\n  <span class=\"token keyword\">return<\/span> <span class=\"token punctuation\">(<\/span><br \/>\n    <span class=\"token operator\">&lt;<\/span>div<span class=\"token operator\">&gt;<\/span><br \/>\n      <span class=\"token operator\">&lt;<\/span>h1<span class=\"token operator\">&gt;<\/span><span class=\"token punctuation\">{<\/span>product<span class=\"token punctuation\">.<\/span>name<span class=\"token punctuation\">}<\/span><span class=\"token operator\">&lt;<\/span><span class=\"token operator\">\/<\/span>h1<span class=\"token operator\">&gt;<\/span><br \/>\n      <span class=\"token operator\">&lt;<\/span>p<span class=\"token operator\">&gt;<\/span><span class=\"token punctuation\">{<\/span>product<span class=\"token punctuation\">.<\/span>description<span class=\"token punctuation\">}<\/span><span class=\"token operator\">&lt;<\/span><span class=\"token operator\">\/<\/span>p<span class=\"token operator\">&gt;<\/span><br \/>\n      <span class=\"token operator\">&lt;<\/span>ProductImage image<span class=\"token operator\">&#061;<\/span><span class=\"token punctuation\">{<\/span>product<span class=\"token punctuation\">.<\/span>image<span class=\"token punctuation\">}<\/span> <span class=\"token operator\">\/<\/span><span class=\"token operator\">&gt;<\/span> <span class=\"token punctuation\">{<\/span><span class=\"token comment\">\/* \u5ba2\u6237\u7aef\u7ec4\u4ef6 *\/<\/span><span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token operator\">&lt;<\/span><span class=\"token operator\">\/<\/span>div<span class=\"token operator\">&gt;<\/span><br \/>\n  <span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<h5>\u5ba2\u6237\u7aef\u7ec4\u4ef6&#xff08;\u5904\u7406\u4ea4\u4e92&#xff09;&#xff1a;<\/h5>\n<p><span class=\"token comment\">\/\/ ProductImage.client.js<\/span><br \/>\n<span class=\"token string\">&#039;use client&#039;<\/span><span class=\"token punctuation\">;<\/span> <span class=\"token comment\">\/\/ \u6807\u8bb0\u4e3a\u5ba2\u6237\u7aef\u7ec4\u4ef6<\/span><\/p>\n<p><span class=\"token keyword\">function<\/span> <span class=\"token function\">ProductImage<\/span><span class=\"token punctuation\">(<\/span><span class=\"token parameter\"><span class=\"token punctuation\">{<\/span> image <span class=\"token punctuation\">}<\/span><\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token keyword\">const<\/span> <span class=\"token punctuation\">[<\/span>zoomed<span class=\"token punctuation\">,<\/span> setZoomed<span class=\"token punctuation\">]<\/span> <span class=\"token operator\">&#061;<\/span> <span class=\"token function\">useState<\/span><span class=\"token punctuation\">(<\/span><span class=\"token boolean\">false<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n  <span class=\"token keyword\">return<\/span> <span class=\"token punctuation\">(<\/span><br \/>\n    <span class=\"token operator\">&lt;<\/span>img<br \/>\n      src<span class=\"token operator\">&#061;<\/span><span class=\"token punctuation\">{<\/span>image<span class=\"token punctuation\">.<\/span>url<span class=\"token punctuation\">}<\/span><br \/>\n      onClick<span class=\"token operator\">&#061;<\/span><span class=\"token punctuation\">{<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&#061;&gt;<\/span> <span class=\"token function\">setZoomed<\/span><span class=\"token punctuation\">(<\/span><span class=\"token operator\">!<\/span>zoomed<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">}<\/span><br \/>\n      className<span class=\"token operator\">&#061;<\/span><span class=\"token punctuation\">{<\/span>zoomed <span class=\"token operator\">?<\/span> <span class=\"token string\">&#039;zoomed&#039;<\/span> <span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;&#039;<\/span><span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token operator\">\/<\/span><span class=\"token operator\">&gt;<\/span><br \/>\n  <span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<hr \/>\n<h4>\u5173\u952e\u603b\u7ed3<\/h4>\n<table>\n<tr>\u7279\u6027\u670d\u52a1\u5668\u7ec4\u4ef6\u5ba2\u6237\u7aef\u7ec4\u4ef6<\/tr>\n<tbody>\n<tr>\n<td>\u6267\u884c\u73af\u5883<\/td>\n<td>\u670d\u52a1\u7aef<\/td>\n<td>\u6d4f\u89c8\u5668<\/td>\n<\/tr>\n<tr>\n<td>\u6570\u636e\u83b7\u53d6<\/td>\n<td>\u76f4\u63a5\u8bbf\u95ee\u540e\u7aef\u8d44\u6e90<\/td>\n<td>\u901a\u8fc7 fetch\/API \u8c03\u7528<\/td>\n<\/tr>\n<tr>\n<td>\u4ea4\u4e92\u6027<\/td>\n<td>\u274c \u65e0\u4e8b\u4ef6\u5904\u7406\/\u72b6\u6001<\/td>\n<td>\u2705 \u652f\u6301\u6240\u6709\u4ea4\u4e92\u903b\u8f91<\/td>\n<\/tr>\n<tr>\n<td>\u4ee3\u7801\u53d1\u9001\u5230\u5ba2\u6237\u7aef<\/td>\n<td>\u274c \u4ec5\u53d1\u9001\u6e32\u67d3\u7ed3\u679c<\/td>\n<td>\u2705 \u53d1\u9001\u5b8c\u6574 JS \u4ee3\u7801<\/td>\n<\/tr>\n<tr>\n<td>\u51cf\u5c11 JS \u4f53\u79ef<\/td>\n<td>\u2705 \u663e\u8457\u4f18\u5316<\/td>\n<td>\u274c \u589e\u52a0\u5ba2\u6237\u7aef\u8d1f\u62c5<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u901a\u8fc7\u5408\u7406\u7ec4\u5408 Server Components&#xff08;\u5185\u5bb9&#xff09; &#043; Client Components&#xff08;\u4ea4\u4e92&#xff09;&#xff0c;\u53ef\u6784\u5efa\u9ad8\u6027\u80fd\u7684 React \u5e94\u7528\u3002\u5efa\u8bae\u7ed3\u5408 Next.js App Router \u5b9e\u8df5\u4ee5\u4f53\u9a8c\u5b8c\u6574 RSC \u5de5\u4f5c\u6d41\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.1k\u6b21\uff0c\u70b9\u8d5e32\u6b21\uff0c\u6536\u85cf25\u6b21\u3002React\u670d\u52a1\u5668\u7ec4\u4ef6(RSC)\u662f\u4e00\u79cd\u4ec5\u5728\u670d\u52a1\u7aef\u6267\u884c\u7684\u7279\u6b8a\u7ec4\u4ef6\uff0c\u901a\u8fc7\u51cf\u5c11\u5ba2\u6237\u7aefJS\u4f53\u79ef\u3001\u76f4\u63a5\u8bbf\u95ee\u670d\u52a1\u7aef\u8d44\u6e90\u548c\u81ea\u52a8\u4ee3\u7801\u5206\u5272\u6765\u4f18\u5316\u6027\u80fd\u3002RSC\u5fc5\u987b\u662f\u5f02\u6b65\u51fd\u6570\uff0c\u4e0d\u80fd\u4f7f\u7528Hooks\u6216\u6d4f\u89c8\u5668API\uff0c\u53ea\u80fd\u8fd4\u56de\u53ef\u5e8f\u5217\u5316\u6570\u636e\u6216\u5ba2\u6237\u7aef\u7ec4\u4ef6\u3002\u4e0e\u5ba2\u6237\u7aef\u7ec4\u4ef6\u534f\u4f5c\u65f6\uff0cRSC\u4f5c\u4e3a\u7236\u7ec4\u4ef6\u4f20\u9012\u6570\u636e\uff0c\u5ba2\u6237\u7aef\u7ec4\u4ef6\u5904\u7406\u4ea4\u4e92\u903b\u8f91\u3002RSC\u9002\u5408\u6570\u636e\u83b7\u53d6\u548c\u9759\u6001\u5185\u5bb9\u6e32\u67d3\uff0c\u800c\u5ba2\u6237\u7aef\u7ec4\u4ef6\u9002\u5408\u5904\u7406\u4ea4\u4e92\u548c\u72b6\u6001\u7ba1\u7406\u3002\u901a\u8fc7\u5408\u7406\u7ec4\u5408\u8fd9\u4e24\u7c7b\u7ec4\u4ef6\uff0c\u53ef\u4ee5\u6784\u5efa\u9ad8\u6027\u80fd\u7684React\u5e94\u7528\u3002_react server components<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[723,524,87,43,3190],"topic":[],"class_list":["post-48582","post","type-post","status-publish","format-standard","hentry","category-server","tag-react","tag-react-js","tag-87","tag-43","tag-3190"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>React \u670d\u52a1\u5668\u7ec4\u4ef6 (RSC) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/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.wsisp.com\/helps\/48582.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"React \u670d\u52a1\u5668\u7ec4\u4ef6 (RSC) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.1k\u6b21\uff0c\u70b9\u8d5e32\u6b21\uff0c\u6536\u85cf25\u6b21\u3002React\u670d\u52a1\u5668\u7ec4\u4ef6(RSC)\u662f\u4e00\u79cd\u4ec5\u5728\u670d\u52a1\u7aef\u6267\u884c\u7684\u7279\u6b8a\u7ec4\u4ef6\uff0c\u901a\u8fc7\u51cf\u5c11\u5ba2\u6237\u7aefJS\u4f53\u79ef\u3001\u76f4\u63a5\u8bbf\u95ee\u670d\u52a1\u7aef\u8d44\u6e90\u548c\u81ea\u52a8\u4ee3\u7801\u5206\u5272\u6765\u4f18\u5316\u6027\u80fd\u3002RSC\u5fc5\u987b\u662f\u5f02\u6b65\u51fd\u6570\uff0c\u4e0d\u80fd\u4f7f\u7528Hooks\u6216\u6d4f\u89c8\u5668API\uff0c\u53ea\u80fd\u8fd4\u56de\u53ef\u5e8f\u5217\u5316\u6570\u636e\u6216\u5ba2\u6237\u7aef\u7ec4\u4ef6\u3002\u4e0e\u5ba2\u6237\u7aef\u7ec4\u4ef6\u534f\u4f5c\u65f6\uff0cRSC\u4f5c\u4e3a\u7236\u7ec4\u4ef6\u4f20\u9012\u6570\u636e\uff0c\u5ba2\u6237\u7aef\u7ec4\u4ef6\u5904\u7406\u4ea4\u4e92\u903b\u8f91\u3002RSC\u9002\u5408\u6570\u636e\u83b7\u53d6\u548c\u9759\u6001\u5185\u5bb9\u6e32\u67d3\uff0c\u800c\u5ba2\u6237\u7aef\u7ec4\u4ef6\u9002\u5408\u5904\u7406\u4ea4\u4e92\u548c\u72b6\u6001\u7ba1\u7406\u3002\u901a\u8fc7\u5408\u7406\u7ec4\u5408\u8fd9\u4e24\u7c7b\u7ec4\u4ef6\uff0c\u53ef\u4ee5\u6784\u5efa\u9ad8\u6027\u80fd\u7684React\u5e94\u7528\u3002_react server components\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/48582.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-07-30T04:42:17+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/48582.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/48582.html\",\"name\":\"React \u670d\u52a1\u5668\u7ec4\u4ef6 (RSC) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-07-30T04:42:17+00:00\",\"dateModified\":\"2025-07-30T04:42:17+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/48582.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/48582.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/48582.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"React \u670d\u52a1\u5668\u7ec4\u4ef6 (RSC)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"React \u670d\u52a1\u5668\u7ec4\u4ef6 (RSC) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","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.wsisp.com\/helps\/48582.html","og_locale":"zh_CN","og_type":"article","og_title":"React \u670d\u52a1\u5668\u7ec4\u4ef6 (RSC) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.1k\u6b21\uff0c\u70b9\u8d5e32\u6b21\uff0c\u6536\u85cf25\u6b21\u3002React\u670d\u52a1\u5668\u7ec4\u4ef6(RSC)\u662f\u4e00\u79cd\u4ec5\u5728\u670d\u52a1\u7aef\u6267\u884c\u7684\u7279\u6b8a\u7ec4\u4ef6\uff0c\u901a\u8fc7\u51cf\u5c11\u5ba2\u6237\u7aefJS\u4f53\u79ef\u3001\u76f4\u63a5\u8bbf\u95ee\u670d\u52a1\u7aef\u8d44\u6e90\u548c\u81ea\u52a8\u4ee3\u7801\u5206\u5272\u6765\u4f18\u5316\u6027\u80fd\u3002RSC\u5fc5\u987b\u662f\u5f02\u6b65\u51fd\u6570\uff0c\u4e0d\u80fd\u4f7f\u7528Hooks\u6216\u6d4f\u89c8\u5668API\uff0c\u53ea\u80fd\u8fd4\u56de\u53ef\u5e8f\u5217\u5316\u6570\u636e\u6216\u5ba2\u6237\u7aef\u7ec4\u4ef6\u3002\u4e0e\u5ba2\u6237\u7aef\u7ec4\u4ef6\u534f\u4f5c\u65f6\uff0cRSC\u4f5c\u4e3a\u7236\u7ec4\u4ef6\u4f20\u9012\u6570\u636e\uff0c\u5ba2\u6237\u7aef\u7ec4\u4ef6\u5904\u7406\u4ea4\u4e92\u903b\u8f91\u3002RSC\u9002\u5408\u6570\u636e\u83b7\u53d6\u548c\u9759\u6001\u5185\u5bb9\u6e32\u67d3\uff0c\u800c\u5ba2\u6237\u7aef\u7ec4\u4ef6\u9002\u5408\u5904\u7406\u4ea4\u4e92\u548c\u72b6\u6001\u7ba1\u7406\u3002\u901a\u8fc7\u5408\u7406\u7ec4\u5408\u8fd9\u4e24\u7c7b\u7ec4\u4ef6\uff0c\u53ef\u4ee5\u6784\u5efa\u9ad8\u6027\u80fd\u7684React\u5e94\u7528\u3002_react server components","og_url":"https:\/\/www.wsisp.com\/helps\/48582.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-07-30T04:42:17+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/48582.html","url":"https:\/\/www.wsisp.com\/helps\/48582.html","name":"React \u670d\u52a1\u5668\u7ec4\u4ef6 (RSC) - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-07-30T04:42:17+00:00","dateModified":"2025-07-30T04:42:17+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/48582.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/48582.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/48582.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"React \u670d\u52a1\u5668\u7ec4\u4ef6 (RSC)"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/48582","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=48582"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/48582\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=48582"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=48582"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=48582"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=48582"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}