{"id":13442,"date":"2023-06-21T17:18:28","date_gmt":"2023-06-21T09:18:28","guid":{"rendered":"https:\/\/aif.amtbbs.org\/?p=13442"},"modified":"2023-06-21T17:18:28","modified_gmt":"2023-06-21T09:18:28","slug":"react-%e9%87%8d%e8%b9%88-angular-js-%e8%a6%86%e8%be%99%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/aif.amtbbs.org\/index.php\/2023\/06\/21\/13442\/","title":{"rendered":"React \u91cd\u8e48 Angular.js \u8986\u8f99\uff1f"},"content":{"rendered":"<p>2012\u5e74\uff0cAngular.js \u4e00\u7ecf\u63a8\u51fa\u4fbf\u6539\u53d8\u4e86\u524d\u7aef\u5f00\u53d1\u7684\u683c\u5c40\uff0c\u8fc5\u901f\u53d6\u5f97\u6210\u529f\u3002\u4ec5\u5728\u4e24\u5e74\u4e4b\u540e\uff0cAngular \u56e2\u961f\u63a8\u51fa\u4e86 Angular 2\uff0c\u7136\u800c\u4ed6\u4eec\u6839\u636e\u4e00\u7ec4\u4e0d\u540c\u7684\u8303\u4f8b\u91cd\u5199\u4e86\u6574\u4e2a\u539f\u59cb\u5e93\u3002\u8bb8\u591a\u5f00\u53d1\u4eba\u5458\uff0c\u5305\u62ec\u6211\u81ea\u5df1\uff0c\u90fd\u4e0d\u60f3\u91cd\u5199\u73b0\u6709\u7684\u5e94\u7528\u7a0b\u5e8f\u6765\u9002\u5e94\u8fd9\u4e9b\u65b0\u60f3\u6cd5\u3002\u5bf9\u4e8e\u65b0\u9879\u76ee\u6765\u8bf4\uff0cAngular.js \u4e0d\u518d\u662f\u9996\u9009\uff0c\u56e0\u4e3a\u5176\u4ed6\u6846\u67b6\u4e5f\u540c\u6837\u51fa\u8272\u3002<\/p>\n<p>2015 \u5e74\uff0c\u6211\u4eec\u5f00\u59cb\u4f7f\u7528 React \u6765\u6784\u5efa\u524d\u7aef\u3002React \u4e0d\u4ec5\u62e5\u6709\u7b80\u5355\u7684\u67b6\u6784\uff0c\u800c\u4e14\u8fd8\u6ce8\u91cd\u7ec4\u4ef6\uff0c\u518d\u52a0\u4e0a\u7a33\u5b9a\u7684\u751f\u4ea7\u529b\uff0c\u65e0\u8bba\u4ee3\u7801\u5e93\u5927\u5c0f\u5982\u4f55\u90fd\u662f\u4e00\u4e2a\u5f88\u597d\u7684\u9009\u62e9\u3002React \u5927\u53d7\u6b22\u8fce\uff0c\u793e\u533a\u53d1\u5c55\u8fc5\u901f\u3002\u6700\u8fd1\uff0cReact \u548c Next.js \u56e2\u961f\u4e00\u76f4\u5728\u63a8\u5e7f\u670d\u52a1\u5668\u7ec4\u4ef6\uff0c\u8fd9\u662f\u4e00\u79cd\u6784\u5efa Web \u5e94\u7528\u7a0b\u5e8f\u7684\u65b0\u65b9\u6cd5\uff0c\u4f46\u4e0d\u9002\u5408\u5927\u591a\u6570\u73b0\u6709\u7684 React \u5e94\u7528\u3002<\/p>\n<p>\u8fd9\u79cd\u53d8\u5316\u662f\u5426\u582a\u6bd4\u4ece Angular.js \u5230 Angular 2 \u7684\u8f6c\u53d8\uff1fReact \u662f\u5426\u6b63\u5728\u91cd\u8e48 Angular.js \u7684\u8986\u8f99\uff1f<\/p>\n<p>\u6ce8\u610f\uff1a\u5728\u672c\u6587\u4e2d\uff0c\u6211\u5c06\u8ba8\u8bba React \u548c Next.js \u56e2\u961f\u5f15\u5165\u7684\u65b0\u529f\u80fd\u3002\u7531\u4e8e\u8fd9\u4e24\u4e2a\u56e2\u961f\u5bc6\u5207\u5408\u4f5c\uff0c\u56e0\u6b64\u5f88\u96be\u8bf4\u54ea\u4e2a\u56e2\u961f\u8d1f\u8d23\u54ea\u4e2a\u529f\u80fd\u3002\u56e0\u6b64\uff0c\u6211\u5c06\u4f7f\u7528\u201cReact\u201d\u6765\u6307\u4ee3\u8fd9\u4e24\u4e2a\u56e2\u961f\u3002<\/p>\n<p><strong>\u91cd\u65b0\u5b66\u4e60\u4e00\u5207\u00a0<\/strong><\/p>\n<h1>React \u7684\u6838\u5fc3\u662f\u4e00\u4e2a\u89c6\u56fe\u5e93\u3002\u8fd9\u4e00\u70b9\u6ca1\u6709\u53d8\u5316\uff0c\u5bf9\u4e8e React \u670d\u52a1\u5668\u7ec4\u4ef6\uff0c\u4f60\u4ecd\u7136\u53ef\u4ee5\u4f7f\u7528 JSX \u6784\u5efa\u7ec4\u4ef6\uff0c\u5e76\u6e32\u67d3 props \u4f20\u9012\u8fdb\u6765\u7684\u52a8\u6001\u5185\u5bb9\uff1a<\/h1>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"javascript\"><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__function\"><span class=\"code-snippet__keyword\">function<\/span> <span class=\"code-snippet__title\">Playlist<\/span>(<span class=\"code-snippet__params\">{ name, tracks }<\/span>) <\/span>{<\/span><\/code><code><span class=\"code-snippet_outer\"> <span class=\"code-snippet__keyword\">return<\/span> (<\/span><\/code><code><span class=\"code-snippet_outer\">   <span class=\"code-snippet__tag\">&lt;<span class=\"code-snippet__name\">div<\/span>&gt;<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">      <span class=\"code-snippet__tag\">&lt;<span class=\"code-snippet__name\">h1<\/span>&gt;<\/span>{name}<span class=\"code-snippet__tag\">&lt;\/<span class=\"code-snippet__name\">h1<\/span>&gt;<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">      <span class=\"code-snippet__tag\">&lt;<span class=\"code-snippet__name\">table<\/span>&gt;<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">          <span class=\"code-snippet__tag\">&lt;<span class=\"code-snippet__name\">thead<\/span>&gt;<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">             <span class=\"code-snippet__tag\">&lt;<span class=\"code-snippet__name\">tr<\/span>&gt;<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">                <span class=\"code-snippet__tag\">&lt;<span class=\"code-snippet__name\">th<\/span>&gt;<\/span>Title<span class=\"code-snippet__tag\">&lt;\/<span class=\"code-snippet__name\">th<\/span>&gt;<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">                <span class=\"code-snippet__tag\">&lt;<span class=\"code-snippet__name\">th<\/span>&gt;<\/span>Artist<span class=\"code-snippet__tag\">&lt;\/<span class=\"code-snippet__name\">th<\/span>&gt;<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">                <span class=\"code-snippet__tag\">&lt;<span class=\"code-snippet__name\">th<\/span>&gt;<\/span>Album<span class=\"code-snippet__tag\">&lt;\/<span class=\"code-snippet__name\">th<\/span>&gt;<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">                <span class=\"code-snippet__tag\">&lt;<span class=\"code-snippet__name\">th<\/span>&gt;<\/span>Duration<span class=\"code-snippet__tag\">&lt;\/<span class=\"code-snippet__name\">th<\/span>&gt;<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">            <span class=\"code-snippet__tag\">&lt;\/<span class=\"code-snippet__name\">tr<\/span>&gt;<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">          <span class=\"code-snippet__tag\">&lt;\/<span class=\"code-snippet__name\">thead<\/span>&gt;<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<span class=\"code-snippet__tag\">&lt;<span class=\"code-snippet__name\">tbody<\/span>&gt;<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">               {tracks.map((track, index) =&gt; (<\/span><\/code><code><span class=\"code-snippet_outer\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<span class=\"code-snippet__tag\">&lt;<span class=\"code-snippet__name\">tr<\/span>\u00a0<span class=\"code-snippet__attr\">key<\/span>=<span class=\"code-snippet__string\">{index}<\/span>&gt;<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">                      <span class=\"code-snippet__tag\">&lt;<span class=\"code-snippet__name\">td<\/span>&gt;<\/span>{track.title}<span class=\"code-snippet__tag\">&lt;\/<span class=\"code-snippet__name\">td<\/span>&gt;<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">                      <span class=\"code-snippet__tag\">&lt;<span class=\"code-snippet__name\">td<\/span>&gt;<\/span>{track.artist}<span class=\"code-snippet__tag\">&lt;\/<span class=\"code-snippet__name\">td<\/span>&gt;<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">                      <span class=\"code-snippet__tag\">&lt;<span class=\"code-snippet__name\">td<\/span>&gt;<\/span>{track.album}<span class=\"code-snippet__tag\">&lt;\/<span class=\"code-snippet__name\">td<\/span>&gt;<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">                      <span class=\"code-snippet__tag\">&lt;<span class=\"code-snippet__name\">td<\/span>&gt;<\/span>{track.duration}<span class=\"code-snippet__tag\">&lt;\/<span class=\"code-snippet__name\">td<\/span>&gt;<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">                   <span class=\"code-snippet__tag\">&lt;\/<span class=\"code-snippet__name\">tr<\/span>&gt;<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">              ))}<\/span><\/code><code><span class=\"code-snippet_outer\">          <span class=\"code-snippet__tag\">&lt;\/<span class=\"code-snippet__name\">tbody<\/span>&gt;<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">      <span class=\"code-snippet__tag\">&lt;\/<span class=\"code-snippet__name\">table<\/span>&gt;<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">   <span class=\"code-snippet__tag\">&lt;\/<span class=\"code-snippet__name\">div<\/span>&gt;<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"> );<\/span><\/code><code><span class=\"code-snippet_outer\">}<\/span><\/code><\/pre>\n<\/section>\n<p>\u7136\u800c\uff0c\u5176\u4ed6\u4e00\u5207\u90fd\u968f\u7740\u670d\u52a1\u5668\u7ec4\u4ef6\u800c\u53d1\u751f\u4e86\u53d8\u5316\u3002\u6570\u636e\u83b7\u53d6\u4e0d\u518d\u4f9d\u8d56 useEffect \u6216 react-query\uff1b\u76f8\u53cd\uff0c\u4f60\u5e94\u8be5\u5728\u5f02\u6b65\u7ec4\u4ef6\u4e2d\u4f7f\u7528 fetch\uff1a<\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"javascript\"><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__keyword\">async<\/span> <span class=\"code-snippet__function\"><span class=\"code-snippet__keyword\">function<\/span> <span class=\"code-snippet__title\">PlaylistFromId<\/span>(<span class=\"code-snippet__params\">{ id }<\/span>) <\/span>{<\/span><\/code><code><span class=\"code-snippet_outer\">\u00a0\u00a0\u00a0\u00a0<span class=\"code-snippet__keyword\">const<\/span>\u00a0response\u00a0=\u00a0<span class=\"code-snippet__keyword\">await<\/span> fetch(<span class=\"code-snippet__string\">`\/api\/playlists\/<span class=\"code-snippet__subst\">${id}<\/span>`<\/span>);<\/span><\/code><code><span class=\"code-snippet_outer\"> <span class=\"code-snippet__keyword\">if<\/span> (!response.ok) {<\/span><\/code><code><span class=\"code-snippet_outer\">\u00a0<span class=\"code-snippet__comment\">\/\/\u00a0This\u00a0will activate\u00a0the\u00a0closest\u00a0`error.js`\u00a0Error\u00a0Boundary<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">\u00a0<span class=\"code-snippet__keyword\">throw<\/span>\u00a0<span class=\"code-snippet__keyword\">new<\/span> <span class=\"code-snippet__built_in\">Error<\/span>(<span class=\"code-snippet__string\">'Failed\u00a0to\u00a0fetch\u00a0data'<\/span>);<\/span><\/code><code><span class=\"code-snippet_outer\"> }<\/span><\/code><code><span class=\"code-snippet_outer\">\u00a0<span class=\"code-snippet__keyword\">const<\/span>\u00a0{\u00a0name,\u00a0tracks\u00a0} =\u00a0response.json();<\/span><\/code><code><span class=\"code-snippet_outer\">\u00a0<span class=\"code-snippet__keyword\">return<\/span>\u00a0<span class=\"code-snippet__tag\">&lt;<span class=\"code-snippet__name\">Playlist<\/span>\u00a0<span class=\"code-snippet__attr\">name<\/span>=<span class=\"code-snippet__string\">{name}<\/span>\u00a0<span class=\"code-snippet__attr\">tracks<\/span>=<span class=\"code-snippet__string\">{tracks}<\/span>\u00a0\/&gt;<\/span>;<\/span><\/code><code><span class=\"code-snippet_outer\">}<\/span><\/code><\/pre>\n<\/section>\n<p>&nbsp;<\/p>\n<p>\u8fd9\u4e2a fetch \u51fd\u6570\u4e0d\u662f\u6d4f\u89c8\u5668 fetch\u3002React \u5bf9\u5176\u8fdb\u884c\u4e86\u52a0\u5f3a\uff0c\u80fd\u591f\u81ea\u52a8\u53bb\u9664\u91cd\u590d\u7684\u8bf7\u6c42\u3002\u4e3a\u4ec0\u4e48\u8bf4\u8fd9\u662f\u5fc5\u8981\u7684\uff1f\u5982\u679c\u4f60\u9700\u8981\u901a\u8fc7\u7ec4\u4ef6\u6811\u66f4\u6df1\u5165\u5730\u8bbf\u95ee\u83b7\u53d6\u7684\u6570\u636e\uff0c\u5c31\u4e0d\u80fd\u5c06\u5176\u653e\u7f6e\u5728 React \u4e0a\u4e0b\u6587\u4e2d\uff0c\u56e0\u4e3a\u670d\u52a1\u5668\u7ec4\u4ef6\u4e2d\u4e0d\u80fd\u4f7f\u7528 useContext\u3002\u56e0\u6b64\uff0c\u5728\u7ec4\u4ef6\u6811\u4e2d\u7684\u4e0d\u540c\u70b9\u8bbf\u95ee\u540c\u4e00\u4e2a\u83b7\u53d6\u6570\u636e\u7684\u63a8\u8350\u65b9\u6cd5\u662f\uff0c\u6839\u636e\u9700\u8981\u91cd\u65b0\u83b7\u53d6\uff0c\u5e76\u4f9d\u9760 React \u6765\u907f\u514d\u91cd\u590d\u8bf7\u6c42\u3002<\/p>\n<p>\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u65e0\u8bba\u54cd\u5e94\u7f13\u5b58\u7684\u6807\u5934\u5982\u4f55\uff0c\u8fd9\u4e2a fetch \u51fd\u6570\u90fd\u4f1a\u7f13\u5b58\u6570\u636e\u3002\u5b9e\u9645\u7684\u83b7\u53d6\u8fc7\u7a0b\u53d1\u751f\u5728\u6784\u5efa\u65f6\u3002<\/p>\n<p>\u5982\u679c\u4f60\u60f3\u901a\u8fc7\u4e00\u4e2a\u6309\u94ae\u6765\u542f\u52a8\u4e00\u4e2a\u00a0POST\u00a0\u52a8\u4f5c\uff0c\u5c31\u5fc5\u987b\u5728\u8868\u5355\u4e2d\u6dfb\u52a0\u00a0fetch\u00a0\u51fd\u6570\uff0c\u5e76\u4f7f\u7528\u670d\u52a1\u5668\u52a8\u4f5c\uff0c\u8fd9\u610f\u5473\u7740\u4f7f\u7528\u4e00\u4e2a\u5e26\u6709\u00a0use server\u00a0\u7684\u51fd\u6570\uff1a<\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"javascript\"><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__keyword\">export<\/span> <span class=\"code-snippet__function\"><span class=\"code-snippet__keyword\">function<\/span> <span class=\"code-snippet__title\">AddToFavoritesButton<\/span>(<span class=\"code-snippet__params\">{ id }<\/span>) <\/span>{<\/span><\/code><code><span class=\"code-snippet_outer\">\u00a0\u00a0\u00a0\u00a0<span class=\"code-snippet__keyword\">async<\/span>\u00a0<span class=\"code-snippet__function\"><span class=\"code-snippet__keyword\">function<\/span>\u00a0<span class=\"code-snippet__title\">addToFavorites<\/span>(<span class=\"code-snippet__params\">data<\/span>)\u00a0<\/span>{<\/span><\/code><code><span class=\"code-snippet_outer\">        <span class=\"code-snippet__string\">'use server'<\/span>;<\/span><\/code><code>        <\/code><code><span class=\"code-snippet_outer\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<span class=\"code-snippet__keyword\">await<\/span>\u00a0fetch(<span class=\"code-snippet__string\">`\/api\/tracks\/<span class=\"code-snippet__subst\">${id}<\/span>\/favorites`<\/span>,\u00a0{\u00a0<span class=\"code-snippet__attr\">method<\/span>:\u00a0<span class=\"code-snippet__string\">'POST'<\/span>\u00a0});<\/span><\/code><code><span class=\"code-snippet_outer\">    }<\/span><\/code><code><span class=\"code-snippet_outer\">    <span class=\"code-snippet__keyword\">return<\/span> (<\/span><\/code><code><span class=\"code-snippet_outer\">       <span class=\"code-snippet__tag\">&lt;<span class=\"code-snippet__name\">form<\/span> <span class=\"code-snippet__attr\">action<\/span>=<span class=\"code-snippet__string\">{addToFavorites}<\/span>&gt;<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0<span class=\"code-snippet__tag\">&lt;<span class=\"code-snippet__name\">button<\/span>\u00a0<span class=\"code-snippet__attr\">type<\/span>=<span class=\"code-snippet__string\">\"submit\"<\/span>&gt;<\/span>Add\u00a0to\u00a0Favorites<span class=\"code-snippet__tag\">&lt;\/<span class=\"code-snippet__name\">button<\/span>&gt;<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">       <span class=\"code-snippet__tag\">&lt;\/<span class=\"code-snippet__name\">form<\/span>&gt;<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">   );<\/span><\/code><code><span class=\"code-snippet_outer\">}<\/span><\/code><\/pre>\n<\/section>\n<p>\u5e38\u89c1\u7684 React \u94a9\u5b50\uff1auseState\u3001useContext\u3001useEffect \u5c06\u5bfc\u81f4\u670d\u52a1\u5668\u7ec4\u4ef6\u51fa\u9519\u3002\u5982\u679c\u4f60\u9700\u8981\u8fd9\u4e9b\u94a9\u5b50\uff0c\u5c31\u5fc5\u987b\u4f7f\u7528 use client\uff0c\u5f3a\u5236 React \u5728\u5ba2\u6237\u7aef\u6e32\u67d3\u7ec4\u4ef6\u3002\u6ce8\u610f\uff0c\u73b0\u5728\u8fd9\u4e2a\u529f\u80fd\u662f\u9ed8\u8ba4\u542f\u7528\u7684\uff0c\u800c\u5728Next.js\u4e2d\uff0c\u751a\u81f3\u5728\u670d\u52a1\u5668\u7ec4\u4ef6\u51fa\u73b0\u4e4b\u524d\uff0c\u5b83\u5c31\u662f\u9ed8\u8ba4\u884c\u4e3a\u4e86\u3002<\/p>\n<p><img decoding=\"async\" class=\"rich_pages wxw-img js_insertlocalimg js_img_placeholder wx_img_placeholder\" src=\"data:;base64,<?xml%20version='1.0'%20encoding='UTF-8'?><svg%20width='1px'%20height='1px'%20viewBox='0%200%201%201'%20version='1.1'%20xmlns='http:\/\/www.w3.org\/2000\/svg'%20xmlns:xlink='http:\/\/www.w3.org\/1999\/xlink'><title><\/title><g%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%20fill-opacity='0'><g%20transform='translate(-249.000000\" alt=\"\u56fe\u7247\" crossorigin=\"anonymous\" data-ratio=\"0.8277777777777777\" data-s=\"300,640\" data-type=\"png\" data-w=\"720\" data-src=\"https:\/\/mmbiz.qpic.cn\/mmbiz_png\/Pn4Sm0RsAujboiav9vANHGbYwjWIEvF68WFXPBzwMwPztalZDicgPkaX9pEJSjiaynHWJondmLqb295RONxJt2Bnw\/640?wx_fmt=png&amp;tp=wxpic&amp;wxfrom=5&amp;wx_lazy=1&amp;wx_co=1\" data-index=\"1\" \/><\/p>\n<p>CSS-in-JS\u4e0e\u670d\u52a1\u5668\u7ec4\u4ef6\u4e0d\u517c\u5bb9\u3002\u5982\u679c\u4f60\u4e60\u60ef\u4e86\u4f7f\u7528 sx \u6216 css \u5c5e\u6027\u76f4\u63a5\u8bbe\u7f6e\u7ec4\u4ef6\u6837\u5f0f\uff0c\u5219\u5fc5\u987b\u5b66\u4e60 CSS Modules\u3001Tailwind \u6216 Sass\u3002\u5728\u6211\u770b\u6765\uff0c\u8fd9\u79cd\u53d8\u5316\u611f\u89c9\u50cf\u662f\u5012\u9000\u4e86\u4e00\u6b65\uff1a<\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"javascript\"><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">\/\/ in app\/dashboard\/layout.tsx<\/span><\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__keyword\">import<\/span> styles <span class=\"code-snippet__keyword\">from<\/span> <span class=\"code-snippet__string\">'.\/styles.module.css'<\/span>;<\/span><\/code><code><span class=\"code-snippet_outer\">\r\n<\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__keyword\">export<\/span> <span class=\"code-snippet__keyword\">default<\/span> <span class=\"code-snippet__function\"><span class=\"code-snippet__keyword\">function<\/span> <span class=\"code-snippet__title\">DashboardLayout<\/span>(<span class=\"code-snippet__params\">{<\/span><\/span><\/span><\/code><code><span class=\"code-snippet_outer\">    children,<\/span><\/code><code><span class=\"code-snippet_outer\">}: {<\/span><\/code><code><span class=\"code-snippet_outer\">\u00a0\u00a0\u00a0\u00a0children:\u00a0React.ReactNode,<\/span><\/code><code><span class=\"code-snippet_outer\">}) {<\/span><\/code><code><span class=\"code-snippet_outer\">\u00a0<span class=\"code-snippet__keyword\">return<\/span>\u00a0<span class=\"code-snippet__tag\">&lt;<span class=\"code-snippet__name\">section<\/span>\u00a0<span class=\"code-snippet__attr\">className<\/span>=<span class=\"code-snippet__string\">{styles.dashboard}<\/span>&gt;<\/span>{children}<span class=\"code-snippet__tag\">&lt;\/<span class=\"code-snippet__name\">section<\/span>&gt;<\/span>;<\/span><\/code><code><span class=\"code-snippet_outer\">}<\/span><\/code><code><span class=\"code-snippet_outer\"><span class=\"code-snippet__comment\">\/* in app\/dashboard\/styles.module.css *\/<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">.dashboard {<\/span><\/code><code><span class=\"code-snippet_outer\">\u00a0\u00a0\u00a0\u00a0<span class=\"code-snippet__attr\">padding<\/span>:\u00a0<span class=\"code-snippet__number\">24<\/span>px;<\/span><\/code><code><span class=\"code-snippet_outer\">}<\/span><\/code><\/pre>\n<\/section>\n<p>\u90a3\u4e48\uff0c\u8c03\u8bd5\u5462\uff1f\u6211\u53ea\u80fd\u795d\u4f60\u597d\u8fd0\u3002React DevTools \u4e0d\u663e\u793a React \u670d\u52a1\u5668\u7ec4\u4ef6\u7684\u8be6\u7ec6\u4fe1\u606f\u3002\u4f60\u65e0\u6cd5\u5728\u6d4f\u89c8\u5668\u4e2d\u68c0\u67e5\u7ec4\u4ef6\uff0c\u67e5\u770b\u5b83\u4f7f\u7528\u7684 props \u6216\u5176\u5b50\u7ec4\u4ef6\u3002\u76ee\u524d\uff0c\u8c03\u8bd5 React \u670d\u52a1\u5668\u7ec4\u4ef6\u53ea\u80fd\u6c42\u52a9\u4e8e console.log\u3002<\/p>\n<p>\u867d\u7136\u57fa\u7840\u7684 JSX \u4fdd\u6301\u4e0d\u53d8\uff0c\u4f46\u670d\u52a1\u5668\u7ec4\u4ef6\u7684\u57fa\u672c\u601d\u60f3\u4e0e\u5ba2\u6237\u7aef JS \u5b8c\u5168\u4e0d\u540c\u3002\u5373\u4fbf\u4f60\u662f\u4e00\u540d\u7cbe\u901a React \u7684\u5f00\u53d1\u4eba\u5458\uff0c\u4e5f\u4e0d\u4e00\u5b9a\u5bf9\u638c\u63e1\u670d\u52a1\u5668\u7ec4\u4ef6\u6709\u5f88\u5927\u5e2e\u52a9\u3002\u57fa\u672c\u4e0a\uff0c\u4f60\u5fc5\u987b\u91cd\u65b0\u5b66\u4e60\u6240\u6709\u5185\u5bb9\uff0c\u9664\u975e\u4f60\u719f\u6089 PHP\u3002<\/p>\n<p>\u6ce8\u610f\uff1a\u516c\u5e73\u5730\u8bf4\uff0c\u6211\u63d0\u51fa\u7684\u5927\u591a\u6570\u95ee\u9898\u90fd\u6d89\u53ca\u5230\u5e26\u6709\u201calpha\u201d\u6807\u7b7e\u7684\u529f\u80fd\u3002\u8fd9\u4e9b\u95ee\u9898\u53ef\u80fd\u4f1a\u5728\u7a33\u5b9a\u7248\u672c\u53d1\u5e03\u4e4b\u524d\u5f97\u5230\u89e3\u51b3\u3002<\/p>\n<h1><\/h1>\n<h1><strong>\u751f\u6001\u7cfb\u7edf\u4e3a\u96f6<\/strong><\/h1>\n<p>\u5982\u4e0a\u6240\u8ff0\uff0c\u83b7\u53d6\u6570\u636e\u4e0d\u80fd\u518d\u4f7f\u7528 react-query\u3002\u4e8b\u5b9e\u8bc1\u660e\uff0c\u8fd9\u4e0d\u662f\u552f\u4e00\u65e0\u6cd5\u7ed3\u5408 React \u670d\u52a1\u5668\u7ec4\u4ef6\u4e00\u8d77\u4f7f\u7528\u7684\u5e93\u3002\u5982\u679c\u4f60\u4f9d\u8d56\u4e0b\u9762\u7684\u5de5\u5177\uff0c\u90a3\u4e48\u5c31\u8981\u5f00\u59cb\u5bfb\u627e\u66ff\u4ee3\u54c1\u4e86\uff1a<\/p>\n<ul class=\"list-paddingleft-1\">\n<li>\u00a0material-ui<\/li>\n<li>\u00a0chakra-ui<\/li>\n<li>\u00a0Emotion<\/li>\n<li>\u00a0styled-components<\/li>\n<li>\u00a0React-query<\/li>\n<li>\u00a0swr<\/li>\n<li>\u00a0react-hook-form\uff0c<\/li>\n<li>\u00a0\u9002\u7528\u4e8e\u5927\u591a\u6570SaaS \u63d0\u4f9b\u5546\u7684 SDK<\/li>\n<li>\u00a0\u4ee5\u53ca\u5176\u4ed6\u7b49\u7b49\u3002<\/li>\n<\/ul>\n<p>\u8fd9\u4e9b\u5e93\u90fd\u4f7f\u7528\u4e86\u6807\u51c6\u7684 React \u94a9\u5b50\uff0c\u4ece\u670d\u52a1\u5668\u7ec4\u4ef6\u8c03\u7528\u65f6\u4f1a\u5931\u8d25\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13446\" src=\"https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2023\/06\/4ffce04d92a4d6cb21c1494cdfcd6dc1-43.png\" width=\"720\" height=\"522\" alt=\"\u56fe\u7247\" srcset=\"https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2023\/06\/4ffce04d92a4d6cb21c1494cdfcd6dc1-43.png 720w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2023\/06\/4ffce04d92a4d6cb21c1494cdfcd6dc1-43-300x218.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/p>\n<p>\u5982\u679c\u4f60\u9700\u8981\u8fd9\u4e9b\u5e93\uff0c\u5219\u5fc5\u987b\u4f7f\u7528 use client \u6307\u4ee4\u5c06\u5b83\u4eec\u5c01\u88c5\u5728\u7ec4\u4ef6\u4e2d\uff0c\u5f3a\u5236\u5ba2\u6237\u7aef\u6e32\u67d3\u3002<\/p>\n<p>\u5f3a\u8c03\u4e00\u4e0b\uff1aReact \u670d\u52a1\u5668\u7ec4\u4ef6\u7834\u574f\u4e86\u51e0\u4e4e\u6240\u6709\u73b0\u6709\u7684 React \u7b2c\u4e09\u65b9\u5e93\uff0c\u8fd9\u4e9b\u5e93\u7684\u4f5c\u8005\u5fc5\u987b\u4fee\u6539\u4ee3\u7801\u624d\u80fd\u517c\u5bb9\u3002\u4e5f\u8bb8\u6709\u4e9b\u4f5c\u8005\u4f1a\u4fee\u6539\u4ee3\u7801\uff0c\u4f46\u6709\u4e9b\u4e0d\u4f1a\u3002\u5373\u4f7f\u4ed6\u4eec\u613f\u610f\u4fee\u6539\uff0c\u4e5f\u9700\u8981\u4e00\u5b9a\u7684\u65f6\u95f4\u3002<\/p>\n<p>\u56e0\u6b64\uff0c\u5982\u679c\u4f60\u4f7f\u7528 React \u670d\u52a1\u5668\u7ec4\u4ef6\u542f\u52a8\u5e94\u7528\uff0c\u5219\u4e0d\u80fd\u4f9d\u8d56\u73b0\u6709\u7684 React \u751f\u6001\u7cfb\u7edf\u3002<\/p>\n<p>\u66f4\u7cdf\u7cd5\u7684\u662f\uff1a\u5ba2\u6237\u7aef React \u63d0\u4f9b\u4e86\u5f88\u591a\u65e5\u5e38\u5de5\u4f5c\u9700\u8981\u7684\u5de5\u5177\uff0c\u4f46\u670d\u52a1\u5668\u7ec4\u4ef6\u4e2d\u5e76\u6ca1\u6709\u63d0\u4f9b\u3002\u4f8b\u5982\uff0cReact Context \u662f\u7ba1\u7406\u4f9d\u8d56\u6ce8\u5165\u7684\u7edd\u4f73\u89e3\u51b3\u65b9\u6848\u3002\u5982\u679c\u6ca1\u6709 React Context\uff0c\u670d\u52a1\u5668\u7ec4\u4ef6\u5c31\u9700\u8981\u4e00\u4e2a\u4f9d\u8d56\u6ce8\u5165\u5bb9\u5668\uff0c\u7c7b\u4f3c\u4e8eAngular \u7684\u65b9\u6cd5\u3002\u5982\u679c\u6838\u5fc3\u56e2\u961f\u4e0d\u63d0\u4f9b\uff0c\u5219\u4e0d\u5f97\u4e0d\u4f9d\u9760\u793e\u533a\u3002<\/p>\n<p>\u4e0e\u6b64\u540c\u65f6\uff0c\u4f60\u5fc5\u987b\u624b\u52a8\u7f16\u5199\u5f88\u591a\u4ee3\u7801\u3002\u5728\u6ca1\u6709 UI Kit\u3001\u8868\u5355\u6846\u67b6\u3001\u667a\u80fd API \u5ba2\u6237\u7aef\u4ee5\u53ca\u4f60\u559c\u6b22\u7684 SaaS \u7684 React \u96c6\u6210\u7684\u60c5\u51b5\u4e0b\u6784\u5efa React \u5e94\u7528\u4f1a\u53d8\u5f97\u975e\u5e38\u5177\u6709\u6311\u6218\u6027\u3002<\/p>\n<p>\u5f53\u524d\u7684 React \u751f\u6001\u7cfb\u7edf\u662f\u5176\u6700\u5927\u7684\u4f18\u52bf\u3002\u8fd9\u4e5f\u662f React \u5982\u6b64\u5e7f\u6cdb\u4f7f\u7528\u7684\u539f\u56e0\u3002\u800c React \u670d\u52a1\u5668\u7ec4\u4ef6\u6253\u7834\u4e86\u8fd9\u4e00\u4f18\u52bf\u3002<\/p>\n<h1><strong>\u9ed1\u9b54\u6cd5\u592a\u591a\u4e86<\/strong><\/h1>\n<p>\u670d\u52a1\u5668\u7aef\u6e32\u67d3\u662f\u4e00\u4e2a\u5df2\u89e3\u51b3\u7684\u95ee\u9898\u3002\u670d\u52a1\u5668\u7aef\u811a\u672c\u63a5\u6536\u8bf7\u6c42\u3001\u83b7\u53d6\u6570\u636e\u5e76\u751f\u6210 HTML\u3002\u5ba2\u6237\u7aef\u6e32\u67d3\u540c\u6837\u6210\u719f\u3002\u6d4f\u89c8\u5668\u68c0\u7d22\u6570\u636e\uff0c\u5ba2\u6237\u7aef\u811a\u672c\u66f4\u65b0 DOM\u3002<\/p>\n<p>React\u5efa\u8bae\u6df7\u5408\u670d\u52a1\u5668\u7aef\u548c\u5ba2\u6237\u7aef\u6e32\u67d3\uff0c\u611f\u89c9\u5c31\u50cf\u662f\u5728\u4f7f\u7528\u9ed1\u9b54\u6cd5\u3002\u4f60\u53ef\u4ee5\u5728\u670d\u52a1\u5668\u7ec4\u4ef6\u4e2d\u4f7f\u7528\u5ba2\u6237\u7aef\u7ec4\u4ef6\uff0c\u53cd\u4e4b\u4ea6\u7136\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13448\" src=\"https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2023\/06\/4ffce04d92a4d6cb21c1494cdfcd6dc1-44.png\" width=\"720\" height=\"556\" alt=\"\u56fe\u7247\" srcset=\"https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2023\/06\/4ffce04d92a4d6cb21c1494cdfcd6dc1-44.png 720w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2023\/06\/4ffce04d92a4d6cb21c1494cdfcd6dc1-44-300x232.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/p>\n<p>\u5f53\u5ba2\u6237\u7aef\u7ec4\u4ef6\u6e32\u67d3\u670d\u52a1\u5668\u7ec4\u4ef6\u65f6\uff0cReact \u670d\u52a1\u5668\u4e0d\u4f1a\u53d1\u9001 HTML\uff0c\u800c\u662f\u53d1\u9001\u7ec4\u4ef6\u6811\u7684\u6587\u672c\u8868\u793a\u3002\u7136\u540e\u7531\u5ba2\u6237\u7aef\u811a\u672c\u5728\u5ba2\u6237\u7aef\u6e32\u67d3\u7ec4\u4ef6\u6811\u3002<\/p>\n<p>\u5982\u679c\u4f60\u4e60\u60ef\u4f7f\u7528\u00a0HTML\u00a0\u6216\u00a0JSON\u00a0\u8c03\u8bd5\u00a0AJAX\u8bf7\u6c42\uff0c\u5c31\u4f1a\u5927\u5403\u4e00\u60ca\u3002\u8fd9\u91cc\u7531\u4e00\u4e2a\u00a0RSC Wire\u00a0\u683c\u5f0f\u7684\u4f8b\u5b50\uff08https:\/\/www.plasmic.app\/blog\/how-react-server-components-work#the-rsc-wire-format\uff09\uff0cReact\u00a0\u4f7f\u7528\u8fd9\u79cd\u683c\u5f0f\u5c06\u66f4\u65b0\u4ece\u670d\u52a1\u5668\u7ec4\u4ef6\u6d41\u5f0f\u4f20\u8f93\u5230\u5ba2\u6237\u7aef\uff1a<\/p>\n<section class=\"code-snippet__fix code-snippet__js\">\n<ul class=\"code-snippet__line-index code-snippet__js\">\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<li><\/li>\n<\/ul>\n<pre class=\"code-snippet__js\" data-lang=\"php\"><code><span class=\"code-snippet_outer\">M1:{<span class=\"code-snippet__string\">\"id\"<\/span>:<span class=\"code-snippet__string\">\".\/src\/ClientComponent.client.js\"<\/span>,<span class=\"code-snippet__string\">\"chunks\"<\/span>:[<span class=\"code-snippet__string\">\"client1\"<\/span>],<span class=\"code-snippet__string\">\"name\"<\/span>:<span class=\"code-snippet__string\">\"\"<\/span>}<\/span><\/code><code><span class=\"code-snippet_outer\">S2:<span class=\"code-snippet__string\">\"react.suspense\"<\/span><\/span><\/code><code><span class=\"code-snippet_outer\">J0:[<span class=\"code-snippet__string\">\"$\"<\/span>,<span class=\"code-snippet__string\">\"@1\"<\/span>,<span class=\"code-snippet__keyword\">null<\/span>,{<span class=\"code-snippet__string\">\"children\"<\/span>:[[<span class=\"code-snippet__string\">\"$\"<\/span>,<span class=\"code-snippet__string\">\"span\"<\/span>,<span class=\"code-snippet__keyword\">null<\/span>,{<span class=\"code-snippet__string\">\"children\"<\/span>:<span class=\"code-snippet__string\">\"Hello\u00a0from\u00a0server\u00a0land\"<\/span>}],[<span class=\"code-snippet__string\">\"$\"<\/span>,<span class=\"code-snippet__string\">\"$2\"<\/span>,<span class=\"code-snippet__keyword\">null<\/span>,{<span class=\"code-snippet__string\">\"fallback\"<\/span>:<span class=\"code-snippet__string\">\"Loading\u00a0tweets...\"<\/span>,<span class=\"code-snippet__string\">\"children\"<\/span>:<span class=\"code-snippet__string\">\"@3\"<\/span>}]]}]<\/span><\/code><code><span class=\"code-snippet_outer\">M4:{<span class=\"code-snippet__string\">\"id\"<\/span>:<span class=\"code-snippet__string\">\".\/src\/Tweet.client.js\"<\/span>,<span class=\"code-snippet__string\">\"chunks\"<\/span>:[<span class=\"code-snippet__string\">\"client8\"<\/span>],<span class=\"code-snippet__string\">\"name\"<\/span>:<span class=\"code-snippet__string\">\"\"<\/span>}<\/span><\/code><code><span class=\"code-snippet_outer\">J3:[<span class=\"code-snippet__string\">\"$\"<\/span>,<span class=\"code-snippet__string\">\"ul\"<\/span>,<span class=\"code-snippet__keyword\">null<\/span>,{<span class=\"code-snippet__string\">\"children\"<\/span>:[[<span class=\"code-snippet__string\">\"$\"<\/span>,<span class=\"code-snippet__string\">\"li\"<\/span>,<span class=\"code-snippet__keyword\">null<\/span>,{<span class=\"code-snippet__string\">\"children\"<\/span>:[<span class=\"code-snippet__string\">\"$\"<\/span>,<span class=\"code-snippet__string\">\"@4\"<\/span>,<span class=\"code-snippet__keyword\">null<\/span>,{<span class=\"code-snippet__string\">\"tweet\"<\/span>:{...}}}]}],[<span class=\"code-snippet__string\">\"$\"<\/span>,<span class=\"code-snippet__string\">\"li\"<\/span>,<span class=\"code-snippet__keyword\">null<\/span>,{<span class=\"code-snippet__string\">\"children\"<\/span>:[<span class=\"code-snippet__string\">\"$\"<\/span>,<span class=\"code-snippet__string\">\"@4\"<\/span>,<span class=\"code-snippet__keyword\">null<\/span>,{<span class=\"code-snippet__string\">\"tweet\"<\/span>:{...}}}]}]]}]<\/span><\/code><\/pre>\n<\/section>\n<p>\u8fd9\u79cd\u683c\u5f0f\u6ca1\u6709\u6587\u6863\uff0c\u56e0\u4e3a\u5b83\u662f\u4e00\u4e2a\u5b9e\u73b0\u7ec6\u8282\u3002<\/p>\n<p>HTTP\u3001JSON \u548c JSX \u5982\u6b64\u6d41\u884c\uff0c\u53ef\u8bfb\u6027\u529f\u4e0d\u53ef\u6ca1\u3002\u7136\u800c\uff0cReact \u670d\u52a1\u5668\u7ec4\u4ef6\u7834\u574f\u4e86\u8fd9\u79cd\u6a21\u5f0f\u3002<\/p>\n<p>React\u670d\u52a1\u5668\u7ec4\u4ef6\u770b\u4f3c\u975e\u5e38\u795e\u79d8\uff0c\u5bf9\u5927\u591a\u6570\u5f00\u53d1\u4eba\u5458\u6765\u8bf4\u90fd\u5f88\u96be\u7406\u89e3\u6216\u8c03\u8bd5\u3002\u4e0d\u786e\u5b9a\u8fd9\u79cd\u53d8\u5316\u7a76\u7adf\u662f\u4f1a\u63d0\u9ad8\u751f\u4ea7\u529b\uff0c\u8fd8\u662f\u4f1a\u963b\u788d\u751f\u4ea7\u529b\u3002<\/p>\n<h1><\/h1>\n<h1><strong>\u6211\u4eec\u771f\u7684\u9700\u8981\u8fd9\u4e2a\u7ec4\u4ef6\u5417\uff1f<\/strong><\/h1>\n<p>\u4ece\u7b2c\u4e00\u539f\u5219\u89e6\u53d1\u8003\u8651 Web \u5f00\u53d1\uff0c\u53ef\u4ee5\u5408\u7406\u5730\u5f97\u51fa\u8fd9\u6837\u7684\u7ed3\u8bba\uff1a\u4f7f\u7528\u5c11\u91cf AJAX \u7684\u670d\u52a1\u5668\u7aef\u6e32\u67d3\u662f\u6784\u5efa Web \u5e94\u7528\u7a0b\u5e8f\u7684\u6709\u6548\u65b9\u6cd5\u3002Dan Abramov \u5728 2023\u5e74 Remix \u5927\u4f1a\u7684\u6f14\u8bb2\u4e2d\u5bf9React \u670d\u52a1\u5668\u7ec4\u4ef6\u80cc\u540e\u7684\u52a8\u673a\u505a\u51fa\u4e86\u89e3\u91ca\uff08https:\/\/www.youtube.com\/watch?v=zMf_xeGPn6s&amp;ab_channel=Remix\uff09\uff1a<\/p>\n<p><img decoding=\"async\" class=\"rich_pages wxw-img js_insertlocalimg js_img_placeholder wx_img_placeholder\" src=\"data:;base64,<?xml%20version='1.0'%20encoding='UTF-8'?><svg%20width='1px'%20height='1px'%20viewBox='0%200%201%201'%20version='1.1'%20xmlns='http:\/\/www.w3.org\/2000\/svg'%20xmlns:xlink='http:\/\/www.w3.org\/1999\/xlink'><title><\/title><g%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%20fill-opacity='0'><g%20transform='translate(-249.000000\" alt=\"\u56fe\u7247\" crossorigin=\"anonymous\" data-ratio=\"0.5472222222222223\" data-s=\"300,640\" data-src=\"https:\/\/mmbiz.qpic.cn\/mmbiz_png\/Pn4Sm0RsAujboiav9vANHGbYwjWIEvF68mZdiaHAdAGVKcaJIUTMP1g9YoYFCdfKaKRPiaickthcuU408JmuJbOw2A\/640?wx_fmt=png&amp;tp=wxpic&amp;wxfrom=5&amp;wx_lazy=1&amp;wx_co=1\" data-type=\"png\" data-w=\"720\" data-index=\"4\" \/><\/p>\n<p>\u8fd9\u79cd\u67b6\u6784\u975e\u5e38\u9002\u5408\u7535\u5b50\u5546\u52a1\u7f51\u7ad9\u3001\u535a\u5ba2\u4ee5\u53ca\u5176\u4ed6\u5bf9 SEO\u00a0\u6709\u5f3a\u70c8\u8981\u6c42\u7684\u3001\u4ee5\u5185\u5bb9\u4e3a\u4e2d\u5fc3\u7684\u7f51\u7ad9\u3002<\/p>\n<p>\u7136\u800c\uff0c\u8fd9\u5e76\u4e0d\u662f\u4e00\u4e2a\u65b0\u6982\u5ff5\u3002\u591a\u5e74\u6765\uff0c \u8fd9\u79cd\u67b6\u6784\u4e00\u76f4\u7528\u4e8e Rails \u4e2d\u7684 Hotwire \u6216 Symfony \u5e94\u7528\u7a0b\u5e8f\u7b49\u5de5\u5177\u3002<\/p>\n<p>\u6b64\u5916\uff0c\u670d\u52a1\u5668\u7ec4\u4ef6\u65e8\u5728\u89e3\u51b3\u7684\u4e00\u4e9b\u95ee\u9898\uff08\u5982\u6570\u636e\u83b7\u53d6\u3001\u90e8\u5206\u6e32\u67d3\u7b49\uff09\u5df2\u88ab\u4e00\u4e9b\u5355\u9875\u5e94\u7528\u7a0b\u5e8f\u6846\u67b6\u89e3\u51b3\u4e86\uff0c\u6bd4\u5982\u6211\u4eec\u81ea\u5df1\u7684 react-admin\u3002\u8fd8\u6709\u4e00\u4e9b\u95ee\u9898\uff0c\u6bd4\u5982\u7ba1\u7406\u9762\u677f\u3001SaaS\u3001B2B \u5e94\u7528\u7a0b\u5e8f\u3001\u5185\u90e8\u5e94\u7528\u7a0b\u5e8f\u3001CRM\u3001ERP\u3001\u957f\u671f\u5e94\u7528\u7a0b\u5e8f\u7b49\uff0c\u90fd\u7b97\u4e0d\u4e0a\u771f\u6b63\u7684\u95ee\u9898\u3002<\/p>\n<p>\u8fd9\u5c31\u662f\u4e3a\u4ec0\u4e48\u8bb8\u591a React \u5f00\u53d1\u4eba\u5458\uff0c\u5305\u62ec\u6211\u81ea\u5df1\uff0c\u90fd\u975e\u5e38\u6ee1\u610f\u5355\u9875\u5e94\u7528\u7a0b\u5e8f\u67b6\u6784\u3002\u5f53\u9700\u8981\u505a\u4e00\u4e9b\u670d\u52a1\u5668\u7aef\u6e32\u67d3\u65f6\uff0c\u6211\u53ef\u80fd\u4f1a\u9009\u62e9\u4e00\u4e2a\u751f\u6001\u7cfb\u7edf\u6bd4 React \u670d\u52a1\u5668\u7ec4\u4ef6\u66f4\u6210\u719f\u7684\u5de5\u5177\u3002<\/p>\n<p>\u90a3\u4e48\uff0c\u5982\u679c\u6211\u5e76\u4e0d\u9700\u8981React \u670d\u52a1\u5668\u7ec4\u4ef6\uff0c\u90a3\u4e48\u53c8\u4f55\u5fc5\u5982\u6b64\u62c5\u5fe7\u5462\uff1f<\/p>\n<h1><\/h1>\n<h1><strong>\u6784\u5efa React \u5e94\u7528\u7684\u6807\u51c6\u65b9\u6cd5<\/strong><\/h1>\n<p>\u6211\u62c5\u5fc3\u7684\u7b2c\u4e00\u4e2a\u95ee\u9898\u662f\uff0cReact \u7684\u8fd9\u79cd\u53d8\u5316\u662f\u5728\u963b\u6b62\u4eba\u4eec\u4f7f\u7528\u5355\u9875\u5e94\u7528\u7a0b\u5e8f\u67b6\u6784\u3002\u6216\u8005\u8bf4\uff0cReact\u4e0d\u9f13\u52b1\u4eba\u4eec\u5728\u6ca1\u6709\u6846\u67b6\u7684\u60c5\u51b5\u4e0b\u4f7f\u7528 React\uff0c\u7136\u800cReact \u6846\u67b6\u672c\u8eab\u5374\u5f00\u59cb\u63a8\u5d07\u670d\u52a1\u5668\u7aef\u6e32\u67d3\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13449\" src=\"https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2023\/06\/4ffce04d92a4d6cb21c1494cdfcd6dc1-45.png\" width=\"720\" height=\"234\" alt=\"\u56fe\u7247\" srcset=\"https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2023\/06\/4ffce04d92a4d6cb21c1494cdfcd6dc1-45.png 720w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2023\/06\/4ffce04d92a4d6cb21c1494cdfcd6dc1-45-300x98.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/p>\n<p>\u6211\u62c5\u5fc3\u7684\u7b2c\u4e8c\u4e2a\u95ee\u9898\u662f\uff0c\u5b98\u65b9 React.js \u6587\u6863\u5efa\u8bae\u4f7f\u7528 Next.js\u3002\u800c Next.js \u5b98\u65b9\u6587\u6863\u5efa\u8bae\u4ece 13.4 \u7248\u5f00\u59cb\u4f7f\u7528 React \u670d\u52a1\u5668\u7ec4\u4ef6\u3002<\/p>\n<p>\u6362\u53e5\u8bdd\u8bf4\uff0c\u6839\u636e\u5b98\u65b9\u6587\u6863\uff0cReact\u00a0\u670d\u52a1\u5668\u7ec4\u4ef6\u662f\u6784\u5efa\u00a0React\u00a0\u5e94\u7528\u7a0b\u5e8f\u7684\u9ed8\u8ba4\u65b9\u5f0f\u3002React\u00a0\u751f\u6001\u7cfb\u7edf\u7684\u65b0\u624b\u81ea\u7136\u4f1a\u4f7f\u7528\u5b83\u4eec\u3002<\/p>\n<p>\u6211\u8ba4\u4e3a\u8fd9\u8fd8\u4e3a\u65f6\u8fc7\u65e9\u3002\u00a0Dan Abramov\u00a0\u4e5f\u8ba4\u4e3a\uff1a<\/p>\n<p>\u201c\u4e3a\u4e86\u8ba9\u65b0\u8303\u5f0f\u53d1\u6325\u4f5c\u7528\uff0c\u6211\u4eec\u8fd8\u9700\u8981\u4ed8\u51fa\u5927\u91cf\u52aa\u529b\u3002\u201d<\/p>\n<p>React\u670d\u52a1\u5668\u7ec4\u4ef6\u9700\u8981\u65b0\u4e00\u4ee3\u8def\u7531\u5668\u3001\u65b0\u4e00\u4ee3\u6346\u7ed1\u5668\u3002\u4f46\u8fd9\u4e9b\u8303\u5f0f\u4ecd\u5904\u4e8e\u00a0alpha\u00a0\u9636\u6bb5\uff0c\u5c1a\u672a\u51c6\u5907\u597d\u6295\u5165\u751f\u4ea7\u3002<\/p>\n<p>\u90a3\u4e48\uff0c\u4e3a\u4ec0\u4e48 Next.js \u5982\u6b64\u6fc0\u8fdb\u5462\uff1f<\/p>\n<p>\u6211\u4e0d\u5f97\u4e0d\u8ba4\u4e3a\uff0cNext.js \u7684\u65b0\u65b9\u5411\u5e76\u4e0d\u662f\u4e3a\u4e86\u5e2e\u52a9\u5f00\u53d1\u8005\uff0c\u800c\u662f\u4e3a\u4e86\u5e2e\u52a9 Vercel \u9500\u552e React\u3002\u4f60\u65e0\u6cd5\u771f\u6b63\u56f4\u7ed5 SPA \u9500\u552e\u670d\u52a1\uff1a\u4e00\u65e6\u7f16\u8bd1\uff0cSPA \u5c31\u662f\u4e00\u4e2a\u53ef\u4ee5\u5728\u4efb\u4f55\u5730\u65b9\u514d\u8d39\u6258\u7ba1\u7684\u5355\u4e2a JS \u6587\u4ef6\u3002\u4f46\u662f\u670d\u52a1\u5668\u7aef\u6e32\u67d3\u7684\u5e94\u7528\u9700\u8981\u670d\u52a1\u5668\u624d\u80fd\u8fd0\u884c\u3002\u670d\u52a1\u5668\u662f\u53ef\u4ee5\u9500\u552e\u7684\u4ea7\u54c1\u3002\u4e5f\u8bb8\u6211\u662f\u4e00\u4e2a\u9634\u8c0b\u8bba\u8005\uff0c\u4f46\u6211\u770b\u4e0d\u51fa\u8fd8\u6709\u5176\u4ed6\u7406\u7531\u50cf\u8fd9\u6837\u7834\u574f React \u751f\u6001\u7cfb\u7edf\u3002<\/p>\n<h1><strong>\u00a0<\/strong><\/h1>\n<h1><strong>\u73b0\u6709\u5e94\u7528\u4e0d\u53d7\u5f71\u54cd<\/strong><\/h1>\n<p>\u4e0e Angular.js \u5230 Angular 2 \u7684\u8fc7\u6e21\u4e0d\u540c\uff0cReact \u670d\u52a1\u5668\u7ec4\u4ef6\u7684\u5f15\u5165\u5e76\u4e0d\u662f\u91cd\u5927\u53d8\u5316\u3002\u73b0\u6709\u7684\u5355\u9875\u5e94\u7528\u7a0b\u5e8f\u4ecd\u7136\u53ef\u4ee5\u4f7f\u7528\u6700\u65b0\u7248\u672c\u7684 React\u3002\u4f7f\u7528 Pages \u8def\u7531\u5668\u6784\u5efa\u7684\u73b0\u6709 Next.js\u5e94\u7528\u7a0b\u5e8f\u4e5f\u53ef\u4ee5\u6b63\u5e38\u5de5\u4f5c\u3002<\/p>\n<p>\u90a3\u4e48\uff0c\u95ee\u9898\uff1a\u201cReact \u4f1a\u91cd\u8e48 Angular.js \u7684\u8986\u8f99\u5417\uff1f\u201d\u7b54\u6848\u662f\uff0c\u4e0d\u4f1a\u3002<\/p>\n<p>\u4f46\u5982\u4eca\u5f00\u59cb\u4e00\u4e2a\u65b0\u9879\u76ee\uff0c\u4f60\u4f1a\u9009\u62e9\u4ec0\u4e48\uff1f\u5177\u6709\u6210\u719f\u5de5\u5177\u548c\u751f\u6001\u7cfb\u7edf\uff08\u5355\u9875\u5e94\u7528\uff09\u7684\u5065\u58ee\u67b6\u6784\uff0c\u8fd8\u662f React \u56e2\u961f\u6b63\u5728\u5f3a\u63a8\u7684\u65b0\u6846\u67b6\uff08\u670d\u52a1\u5668\u7ec4\u4ef6\uff09\uff1f\u8fd9\u662f\u4e00\u4e2a\u8270\u96be\u7684\u9009\u62e9\uff0c\u4eba\u4eec\u53ef\u80fd\u4f1a\u5bfb\u627e\u66ff\u4ee3\u65b9\u6848\uff0c\u800c\u4e0d\u662f\u5192\u9669\u505a\u9519\u8bef\u7684\u9009\u62e9\u3002<\/p>\n<p>\u6211\u4e2a\u4eba\u8ba4\u4e3a\uff0cReact \u5e0c\u671b\u901a\u8fc7\u4e00\u4e2a\u5de5\u5177\u6ee1\u8db3\u6240\u6709 Web \u5f00\u53d1\u4eba\u5458\u9700\u6c42\u7684\u613f\u666f\u8fc7\u4e8e\u6fc0\u8fdb\uff0c\u6216\u8005\u8bf4\u5f53\u524d\u7684\u89e3\u51b3\u65b9\u6848\u4e0d\u6b63\u786e\u3002Next.js \u6587\u6863\u4e2d\u6709\u4e00\u4e2a\u4e0b\u62c9\u5217\u8868\uff0c\u5141\u8bb8\u8bfb\u8005\u5728App \u8def\u7531\u5668\uff08\u670d\u52a1\u5668\u7ec4\u4ef6\uff09\u548c Pages \u8def\u7531\u5668\u4e4b\u95f4\u8fdb\u884c\u9009\u62e9\u3002\u5982\u679c\u4e00\u4e2a\u5de5\u5177\u63d0\u4f9b\u4e24\u79cd\u622a\u7136\u4e0d\u540c\u7684\u65b9\u6cd5\u6765\u505a\u540c\u4e00\u4ef6\u4e8b\uff0c\u90a3\u4e48\u5b83\u8fd8\u662f\u540c\u4e00\u4e2a\u5de5\u5177\u5417\uff1f<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-13450\" src=\"https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2023\/06\/4ffce04d92a4d6cb21c1494cdfcd6dc1-46.png\" width=\"720\" height=\"216\" alt=\"\u56fe\u7247\" srcset=\"https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2023\/06\/4ffce04d92a4d6cb21c1494cdfcd6dc1-46.png 720w, https:\/\/aiforumimage.oss-cn-shanghai.aliyuncs.com\/wp-content\/uploads\/2023\/06\/4ffce04d92a4d6cb21c1494cdfcd6dc1-46-300x90.png 300w\" sizes=\"auto, (max-width: 720px) 100vw, 720px\" \/><\/p>\n<p>\u6240\u4ee5\uff0c\u95ee\u9898\uff1a\u201cReact\u00a0\u662f\u5426\u4f1a\u56e0\u4e3a\u8fc7\u4e8e\u6fc0\u8fdb\u800c\u635f\u5bb3\u6574\u4e2a\u793e\u533a\uff1f\u201d\u6211\u8ba4\u4e3a\u7b54\u6848\u662f\u80af\u5b9a\u7684\u3002<\/p>\n<p><strong>\u603b\u7ed3<\/strong><\/p>\n<p>\u4e5f\u8bb8\u670d\u52a1\u5668\u7ec4\u4ef6\u4ee3\u8868\u670d\u52a1\u5668\u7aef\u6846\u67b6\u7684\u8fdb\u6b65\uff0c\u6216\u8005\u81f3\u5c11\uff0c\u7b49\u5230\u51c6\u5907\u597d\u6295\u5165\u751f\u4ea7\uff0c\u5b83\u4eec\u771f\u7684\u80fd\u591f\u53d1\u6325\u79ef\u6781\u7684\u4f5c\u7528\u3002\u4f46\u5bf9\u4e8e\u66f4\u5e7f\u6cdb\u7684 React \u793e\u533a\u6765\u8bf4\uff0c\u6211\u5bb3\u6015\u8fd9\u4e00\u53d8\u5316\u4f1a\u5bfc\u81f4\u793e\u533a\u5206\u88c2\uff0c\u5e76\u6709\u53ef\u80fd\u5371\u53ca React \u591a\u5e74\u6765\u5efa\u7acb\u7684\u4f18\u52bf\u3002<\/p>\n<p>\u6211\u5e0c\u671b React \u548c Next.js \u56e2\u961f\u91c7\u7528\u66f4\u52a0\u6298\u4e2d\u7684\u65b9\u6cd5\u3002\u6211\u5e0c\u671b React \u56e2\u961f\u8ba4\u8bc6\u5230\u5355\u9875\u5e94\u7528\u67b6\u6784\u662f\u4e00\u4e2a\u6b63\u786e\u7684\u9009\u62e9\uff0c\u5e76\u4e14\u77ed\u671f\u5185\u4e0d\u4f1a\u6d88\u5931\u3002\u6211\u66f4\u5e0c\u671b\u770b\u5230 Next.js \u5728\u4ed6\u4eec\u7684\u6587\u6863\u4e2d\u6de1\u5316\u670d\u52a1\u5668\u7ec4\u4ef6\uff0c\u6216\u8005\u81f3\u5c11\u660e\u786e\u6807\u6ce8\u201calpha\u201d\u529f\u80fd\u3002<\/p>\n<p>\u4e5f\u8bb8\u662f\u6211\u8fc7\u4e8e\u6025\u8e81\uff0c\u4e5f\u8bb8\u8fd9\u79cd\u53d8\u5316\u4ee3\u8868\u4e86\u672a\u6765\u7684\u8d8b\u52bf\u3002\u4e5f\u8bb8\u5f00\u53d1\u4eba\u5458\u6ce8\u5b9a\u8981\u4e0d\u65ad\u5730\u5728\u8303\u5f0f\u4e4b\u95f4\u6765\u56de\u8f6c\u6362\uff0c\u8fd9\u5c31\u662f\u8fd9\u4e2a\u884c\u4e1a\u7684\u672c\u8d28\u3002<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_13442\" class=\"pvc_stats total_only  \" data-element-id=\"13442\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" version=\"1.0\" viewBox=\"0 0 502 315\" preserveAspectRatio=\"xMidYMid meet\"><g transform=\"translate(0,332) scale(0.1,-0.1)\" fill=\"\" stroke=\"none\"><path d=\"M2394 3279 l-29 -30 -3 -207 c-2 -182 0 -211 15 -242 39 -76 157 -76 196 0 15 31 17 60 15 243 l-3 209 -33 29 c-26 23 -41 29 -80 29 -41 0 -53 -5 -78 -31z\"\/><path d=\"M3085 3251 c-45 -19 -58 -50 -96 -229 -47 -217 -49 -260 -13 -295 52 -53 146 -42 177 20 16 31 87 366 87 410 0 70 -86 122 -155 94z\"\/><path d=\"M1751 3234 c-13 -9 -29 -31 -37 -50 -12 -29 -10 -49 21 -204 19 -94 39 -189 45 -210 14 -50 54 -80 110 -80 34 0 48 6 76 34 21 21 34 44 34 59 0 14 -18 113 -40 219 -37 178 -43 195 -70 221 -36 32 -101 37 -139 11z\"\/><path d=\"M1163 3073 c-36 -7 -73 -59 -73 -102 0 -56 133 -378 171 -413 34 -32 83 -37 129 -13 70 36 67 87 -16 290 -86 209 -89 214 -129 231 -35 14 -42 15 -82 7z\"\/><path d=\"M3689 3066 c-15 -9 -33 -30 -42 -48 -48 -103 -147 -355 -147 -375 0 -98 131 -148 192 -74 13 15 57 108 97 206 80 196 84 226 37 273 -30 30 -99 39 -137 18z\"\/><path d=\"M583 2784 c-38 -19 -67 -74 -58 -113 9 -42 211 -354 242 -373 16 -10 45 -18 66 -18 51 0 107 52 107 100 0 39 -1 41 -124 234 -80 126 -108 162 -133 173 -41 17 -61 16 -100 -3z\"\/><path d=\"M4250 2784 c-14 -9 -74 -91 -133 -183 -95 -150 -107 -173 -107 -213 0 -55 33 -94 87 -104 67 -13 90 8 211 198 130 202 137 225 78 284 -27 27 -42 34 -72 34 -22 0 -50 -8 -64 -16z\"\/><path d=\"M2275 2693 c-553 -48 -1095 -270 -1585 -649 -135 -104 -459 -423 -483 -476 -23 -49 -22 -139 2 -186 73 -142 361 -457 571 -626 285 -228 642 -407 990 -497 242 -63 336 -73 660 -74 310 0 370 5 595 52 535 111 1045 392 1455 803 122 121 250 273 275 326 19 41 19 137 0 174 -41 79 -309 363 -465 492 -447 370 -946 591 -1479 653 -113 14 -422 18 -536 8z m395 -428 c171 -34 330 -124 456 -258 112 -119 167 -219 211 -378 27 -96 24 -300 -5 -401 -72 -255 -236 -447 -474 -557 -132 -62 -201 -76 -368 -76 -167 0 -236 14 -368 76 -213 98 -373 271 -451 485 -162 444 86 934 547 1084 153 49 292 57 452 25z m909 -232 c222 -123 408 -262 593 -441 76 -74 138 -139 138 -144 0 -16 -233 -242 -330 -319 -155 -123 -309 -223 -461 -299 l-81 -41 32 46 c18 26 49 83 70 128 143 306 141 649 -6 957 -25 52 -61 116 -79 142 l-34 47 45 -20 c26 -10 76 -36 113 -56z m-2057 25 c-40 -58 -105 -190 -130 -263 -110 -324 -59 -707 132 -981 25 -35 42 -64 37 -64 -19 0 -241 119 -326 174 -188 122 -406 314 -532 468 l-58 71 108 103 c185 178 428 349 672 473 66 33 121 60 123 61 2 0 -10 -19 -26 -42z\"\/><path d=\"M2375 1950 c-198 -44 -350 -190 -395 -379 -18 -76 -8 -221 19 -290 114 -284 457 -406 731 -260 98 52 188 154 231 260 27 69 37 214 19 290 -38 163 -166 304 -326 360 -67 23 -215 33 -279 19z\"\/><\/g><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/aif.amtbbs.org\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>2012\u5e74\uff0cAngular.js \u4e00\u7ecf\u63a8\u51fa\u4fbf\u6539\u53d8\u4e86\u524d\u7aef\u5f00\u53d1\u7684\u683c\u5c40\uff0c\u8fc5\u901f\u53d6\u5f97\u6210\u529f\u3002\u4ec5\u5728\u4e24\u5e74\u4e4b\u540e\uff0cAngular  [&hellip;]<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p id=\"pvc_stats_13442\" class=\"pvc_stats total_only  \" data-element-id=\"13442\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" version=\"1.0\" viewBox=\"0 0 502 315\" preserveAspectRatio=\"xMidYMid meet\"><g transform=\"translate(0,332) scale(0.1,-0.1)\" fill=\"\" stroke=\"none\"><path d=\"M2394 3279 l-29 -30 -3 -207 c-2 -182 0 -211 15 -242 39 -76 157 -76 196 0 15 31 17 60 15 243 l-3 209 -33 29 c-26 23 -41 29 -80 29 -41 0 -53 -5 -78 -31z\"\/><path d=\"M3085 3251 c-45 -19 -58 -50 -96 -229 -47 -217 -49 -260 -13 -295 52 -53 146 -42 177 20 16 31 87 366 87 410 0 70 -86 122 -155 94z\"\/><path d=\"M1751 3234 c-13 -9 -29 -31 -37 -50 -12 -29 -10 -49 21 -204 19 -94 39 -189 45 -210 14 -50 54 -80 110 -80 34 0 48 6 76 34 21 21 34 44 34 59 0 14 -18 113 -40 219 -37 178 -43 195 -70 221 -36 32 -101 37 -139 11z\"\/><path d=\"M1163 3073 c-36 -7 -73 -59 -73 -102 0 -56 133 -378 171 -413 34 -32 83 -37 129 -13 70 36 67 87 -16 290 -86 209 -89 214 -129 231 -35 14 -42 15 -82 7z\"\/><path d=\"M3689 3066 c-15 -9 -33 -30 -42 -48 -48 -103 -147 -355 -147 -375 0 -98 131 -148 192 -74 13 15 57 108 97 206 80 196 84 226 37 273 -30 30 -99 39 -137 18z\"\/><path d=\"M583 2784 c-38 -19 -67 -74 -58 -113 9 -42 211 -354 242 -373 16 -10 45 -18 66 -18 51 0 107 52 107 100 0 39 -1 41 -124 234 -80 126 -108 162 -133 173 -41 17 -61 16 -100 -3z\"\/><path d=\"M4250 2784 c-14 -9 -74 -91 -133 -183 -95 -150 -107 -173 -107 -213 0 -55 33 -94 87 -104 67 -13 90 8 211 198 130 202 137 225 78 284 -27 27 -42 34 -72 34 -22 0 -50 -8 -64 -16z\"\/><path d=\"M2275 2693 c-553 -48 -1095 -270 -1585 -649 -135 -104 -459 -423 -483 -476 -23 -49 -22 -139 2 -186 73 -142 361 -457 571 -626 285 -228 642 -407 990 -497 242 -63 336 -73 660 -74 310 0 370 5 595 52 535 111 1045 392 1455 803 122 121 250 273 275 326 19 41 19 137 0 174 -41 79 -309 363 -465 492 -447 370 -946 591 -1479 653 -113 14 -422 18 -536 8z m395 -428 c171 -34 330 -124 456 -258 112 -119 167 -219 211 -378 27 -96 24 -300 -5 -401 -72 -255 -236 -447 -474 -557 -132 -62 -201 -76 -368 -76 -167 0 -236 14 -368 76 -213 98 -373 271 -451 485 -162 444 86 934 547 1084 153 49 292 57 452 25z m909 -232 c222 -123 408 -262 593 -441 76 -74 138 -139 138 -144 0 -16 -233 -242 -330 -319 -155 -123 -309 -223 -461 -299 l-81 -41 32 46 c18 26 49 83 70 128 143 306 141 649 -6 957 -25 52 -61 116 -79 142 l-34 47 45 -20 c26 -10 76 -36 113 -56z m-2057 25 c-40 -58 -105 -190 -130 -263 -110 -324 -59 -707 132 -981 25 -35 42 -64 37 -64 -19 0 -241 119 -326 174 -188 122 -406 314 -532 468 l-58 71 108 103 c185 178 428 349 672 473 66 33 121 60 123 61 2 0 -10 -19 -26 -42z\"\/><path d=\"M2375 1950 c-198 -44 -350 -190 -395 -379 -18 -76 -8 -221 19 -290 114 -284 457 -406 731 -260 98 52 188 154 231 260 27 69 37 214 19 290 -38 163 -166 304 -326 360 -67 23 -215 33 -279 19z\"\/><\/g><\/svg><\/i> <img loading=\"lazy\" decoding=\"async\" width=\"16\" height=\"16\" alt=\"Loading\" src=\"https:\/\/aif.amtbbs.org\/wp-content\/plugins\/page-views-count\/ajax-loader-2x.gif\" border=0 \/><\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":8,"featured_media":13446,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23],"tags":[],"class_list":["post-13442","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-23"],"_links":{"self":[{"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/posts\/13442","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/comments?post=13442"}],"version-history":[{"count":1,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/posts\/13442\/revisions"}],"predecessor-version":[{"id":13451,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/posts\/13442\/revisions\/13451"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/media\/13446"}],"wp:attachment":[{"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/media?parent=13442"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/categories?post=13442"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/aif.amtbbs.org\/index.php\/wp-json\/wp\/v2\/tags?post=13442"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}