{"id":653,"date":"2025-01-01T18:27:42","date_gmt":"2025-01-01T10:27:42","guid":{"rendered":"https:\/\/www.laixuexila.com\/?p=653"},"modified":"2025-01-01T18:27:42","modified_gmt":"2025-01-01T10:27:42","slug":"%e4%b8%80%e4%b8%aa%e5%85%b3%e4%ba%8e-remix-%e6%a1%86%e6%9e%b6%e7%9a%84%e4%bd%bf%e7%94%a8%e6%95%99%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/www.laixuexila.com\/index.php\/2025\/01\/01\/%e4%b8%80%e4%b8%aa%e5%85%b3%e4%ba%8e-remix-%e6%a1%86%e6%9e%b6%e7%9a%84%e4%bd%bf%e7%94%a8%e6%95%99%e7%a8%8b\/","title":{"rendered":"\u4e00\u4e2a\u5173\u4e8e Remix \u6846\u67b6\u7684\u4f7f\u7528\u6559\u7a0b"},"content":{"rendered":"\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">Remix \u662f\u4e00\u4e2a\u73b0\u4ee3\u5316\u7684 React \u6846\u67b6\uff0c\u81f4\u529b\u4e8e\u63d0\u5347 Web \u5e94\u7528\u7684\u7528\u6237\u4f53\u9a8c\u3001\u6027\u80fd\u4ee5\u53ca\u5f00\u53d1\u8005\u4f53\u9a8c\u3002Remix \u7684\u8bbe\u8ba1\u7406\u5ff5\u662f\uff1a<strong>\u66f4\u5feb\u7684\u9875\u9762\u52a0\u8f7d\u3001\u66f4\u5c11\u7684 JavaScript\u3001\u66f4\u9ad8\u6548\u7684\u670d\u52a1\u5668\u6e32\u67d3<\/strong>\u3002\u4e0e\u4f20\u7edf\u7684 React \u6846\u67b6\uff08\u5982 Create React App\uff09\u4e0d\u540c\uff0cRemix \u5145\u5206\u5229\u7528\u4e86\u73b0\u4ee3\u6d4f\u89c8\u5668\u548c\u670d\u52a1\u5668\u7684\u529f\u80fd\uff0c\u901a\u8fc7 <strong>\u52a0\u8f7d\u6570\u636e\u7684\u65b9\u5f0f<\/strong> \u548c <strong>\u524d\u540e\u7aef\u878d\u5408<\/strong> \u6765\u4f18\u5316\u5e94\u7528\u7684\u6027\u80fd\u548c\u5f00\u53d1\u4f53\u9a8c\u3002<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0b\u9762\u662f\u4e00\u4e2a\u5173\u4e8e Remix \u6846\u67b6\u7684\u4f7f\u7528\u6559\u7a0b\uff0c\u6db5\u76d6\u4e86\u5982\u4f55\u4ece\u5b89\u88c5\u3001\u57fa\u672c\u4f7f\u7528\u5230\u4e00\u4e9b\u6838\u5fc3\u6982\u5ff5\u7684\u5b9e\u8df5\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">1. <strong>\u5b89\u88c5\u548c\u521b\u5efa Remix \u9879\u76ee<\/strong><\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">1.1 \u5b89\u88c5 Remix<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">Remix \u63d0\u4f9b\u4e86\u591a\u79cd\u65b9\u6cd5\u6765\u521b\u5efa\u65b0\u9879\u76ee\u3002\u6700\u5e38\u89c1\u7684\u65b9\u5f0f\u662f\u4f7f\u7528 <code>create-remix<\/code> \u811a\u624b\u67b6\u5de5\u5177\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \u4f7f\u7528 npm \u5b89\u88c5 Remix\nnpm create remix@latest\n\n# \u4f7f\u7528 yarn \u5b89\u88c5 Remix\nyarn create remix@latest<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b89\u88c5\u540e\uff0c\u5b83\u4f1a\u63d0\u793a\u4f60\u9009\u62e9\u5e94\u7528\u7a0b\u5e8f\u7684\u914d\u7f6e\u9009\u9879\uff0c\u6bd4\u5982\u4f7f\u7528 <code>TypeScript<\/code> \u8fd8\u662f <code>JavaScript<\/code>\uff0c\u9009\u62e9 <code>React Router<\/code> \u8fd8\u662f <code>Remix Router<\/code>\uff0c\u4ee5\u53ca\u4f60\u5e0c\u671b\u5982\u4f55\u90e8\u7f72\uff08\u6bd4\u5982\u4f7f\u7528 Express\u3001Koa\u3001\u6216\u8005\u76f4\u63a5\u90e8\u7f72\u5230 Vercel\u3001Netlify\uff09\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">1.2 \u542f\u52a8\u5f00\u53d1\u670d\u52a1\u5668<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u521b\u5efa\u5e76\u8fdb\u5165\u9879\u76ee\u6587\u4ef6\u5939\u540e\uff0c\u4f60\u53ef\u4ee5\u542f\u52a8\u5f00\u53d1\u670d\u52a1\u5668\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code># \u4f7f\u7528 npm\nnpm install\nnpm run dev\n\n# \u4f7f\u7528 yarn\nyarn install\nyarn dev<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u5f00\u53d1\u670d\u52a1\u5668\u901a\u5e38\u8fd0\u884c\u5728 <code>http:\/\/localhost:3000<\/code>\uff0c\u53ef\u4ee5\u901a\u8fc7\u6d4f\u89c8\u5668\u8bbf\u95ee\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">2. <strong>Remix \u9879\u76ee\u7684\u7ed3\u6784<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Remix \u9879\u76ee\u6709\u4e00\u4e9b\u7ea6\u5b9a\u7684\u6587\u4ef6\u548c\u6587\u4ef6\u5939\u7ed3\u6784\uff0c\u5176\u4e2d\u6700\u6838\u5fc3\u7684\u90e8\u5206\u5305\u62ec\uff1a<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>src\/routes<\/code>\uff1a\u6240\u6709\u7684\u9875\u9762\u548c\u8def\u7531\u5b9a\u4e49\u90fd\u5728\u8fd9\u4e2a\u6587\u4ef6\u5939\u4e2d\u3002\u6bcf\u4e2a\u6587\u4ef6\u5939\u6216\u6587\u4ef6\u4ee3\u8868\u4e00\u4e2a\u8def\u7531\u3002<\/li>\n\n\n\n<li><code>src\/components<\/code>\uff1a\u7528\u4e8e\u5b58\u653e React \u7ec4\u4ef6\u3002<\/li>\n\n\n\n<li><code>src\/styles<\/code>\uff1a\u5168\u5c40\u6837\u5f0f\u6587\u4ef6\uff08CSS\u3001SCSS \u7b49\uff09\u3002<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">3. <strong>\u521b\u5efa\u8def\u7531\u548c\u9875\u9762<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Remix \u57fa\u4e8e\u6587\u4ef6\u7cfb\u7edf\u6765\u81ea\u52a8\u751f\u6210\u8def\u7531\uff0c\u4f60\u53ea\u9700\u5728 <code>src\/routes<\/code> \u4e2d\u521b\u5efa\u6587\u4ef6\u548c\u6587\u4ef6\u5939\uff0c\u5c31\u4f1a\u81ea\u52a8\u751f\u6210\u8def\u7531\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">3.1 \u521b\u5efa\u4e00\u4e2a\u57fa\u7840\u9875\u9762<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728 <code>src\/routes<\/code> \u6587\u4ef6\u5939\u4e0b\uff0c\u521b\u5efa\u4e00\u4e2a <code>index.tsx<\/code> \u6587\u4ef6\uff0c\u5b83\u4f1a\u6620\u5c04\u5230\u6839\u8def\u7531\uff08<code>\/<\/code>\uff09\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ src\/routes\/index.tsx\nimport { Link } from 'remix';\n\nexport default function Index() {\n  return (\n    &lt;div&gt;\n      &lt;h1&gt;Welcome to Remix&lt;\/h1&gt;\n      &lt;p&gt;This is the home page.&lt;\/p&gt;\n      &lt;Link to=\"\/about\"&gt;Go to About&lt;\/Link&gt;\n    &lt;\/div&gt;\n  );\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u8be5\u7ec4\u4ef6\u4f1a\u663e\u793a\u9996\u9875\u5185\u5bb9\uff0c\u5e76\u63d0\u4f9b\u4e00\u4e2a\u8df3\u8f6c\u5230 <code>\/about<\/code> \u9875\u9762\uff08\u6211\u4eec\u4f1a\u5728\u7a0d\u540e\u521b\u5efa\u8fd9\u4e2a\u9875\u9762\uff09\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">3.2 \u521b\u5efa About \u9875\u9762<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728 <code>src\/routes<\/code> \u6587\u4ef6\u5939\u4e0b\uff0c\u521b\u5efa\u4e00\u4e2a <code>about.tsx<\/code> \u6587\u4ef6\u6765\u5b9a\u4e49 About \u9875\u9762\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ src\/routes\/about.tsx\nexport default function About() {\n  return (\n    &lt;div&gt;\n      &lt;h1&gt;About Remix&lt;\/h1&gt;\n      &lt;p&gt;This is the about page.&lt;\/p&gt;\n    &lt;\/div&gt;\n  );\n}<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u6b64\u65f6\uff0c\u8bbf\u95ee <code>http:\/\/localhost:3000\/about<\/code> \u65f6\uff0cRemix \u4f1a\u81ea\u52a8\u6e32\u67d3\u8fd9\u4e2a\u9875\u9762\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">4. <strong>\u6570\u636e\u52a0\u8f7d\u4e0e\u6e32\u67d3<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Remix \u63d0\u4f9b\u4e86\u4e00\u4e2a\u5f3a\u5927\u7684\u6570\u636e\u52a0\u8f7d\u673a\u5236\uff0c\u5141\u8bb8\u4f60\u5728\u670d\u52a1\u5668\u7aef\u548c\u5ba2\u6237\u7aef\u90fd\u53ef\u4ee5\u52a0\u8f7d\u6570\u636e\u3002\u6700\u91cd\u8981\u7684 API \u662f <code>loader<\/code> \u548c <code>action<\/code>\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">4.1 \u4f7f\u7528 <code>loader<\/code> \u83b7\u53d6\u6570\u636e<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728 Remix \u4e2d\uff0c\u4f60\u53ef\u4ee5\u5728\u8def\u7531\u6587\u4ef6\u4e2d\u5b9a\u4e49 <code>loader<\/code> \u51fd\u6570\uff0c\u8be5\u51fd\u6570\u4f1a\u5728\u6e32\u67d3\u7ec4\u4ef6\u4e4b\u524d\u6267\u884c\uff0c\u52a0\u8f7d\u6240\u9700\u7684\u6570\u636e\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u4f8b\u5982\uff0c\u5728 <code>src\/routes\/index.tsx<\/code> \u4e2d\uff0c\u521b\u5efa\u4e00\u4e2a <code>loader<\/code> \u6765\u52a0\u8f7d\u6570\u636e\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ src\/routes\/index.tsx\nimport { json, LoaderFunction } from 'remix';\n\nexport let loader: LoaderFunction = async () =&gt; {\n  const data = await fetchDataFromAPI();\n  return json({ data });\n};\n\nexport default function Index({ data }: { data: any }) {\n  return (\n    &lt;div&gt;\n      &lt;h1&gt;Welcome to Remix&lt;\/h1&gt;\n      &lt;p&gt;{data}&lt;\/p&gt;\n    &lt;\/div&gt;\n  );\n}<\/code><\/pre>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>loader<\/code> \u51fd\u6570\u7528\u4e8e\u52a0\u8f7d\u6570\u636e\u3002\u5728\u8fd9\u91cc\uff0c<code>fetchDataFromAPI<\/code> \u662f\u4f60\u81ea\u5b9a\u4e49\u7684\u51fd\u6570\uff0c\u7528\u6765\u4ece API \u83b7\u53d6\u6570\u636e\u3002<\/li>\n\n\n\n<li><code>json<\/code> \u662f\u4e00\u4e2a\u5e2e\u52a9\u51fd\u6570\uff0c\u5b83\u4f1a\u5c06\u6570\u636e\u8f6c\u4e3a JSON \u683c\u5f0f\uff0c\u5e76\u51c6\u5907\u5c06\u5176\u4f20\u9012\u7ed9\u7ec4\u4ef6\u3002<\/li>\n\n\n\n<li><code>data<\/code> \u5c06\u4f5c\u4e3a\u5c5e\u6027\u4f20\u9012\u5230\u7ec4\u4ef6\u4e2d\u3002<\/li>\n<\/ul>\n\n\n\n<h4 class=\"wp-block-heading\">4.2 \u4f7f\u7528 <code>useLoaderData<\/code> \u83b7\u53d6\u6570\u636e<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u7ec4\u4ef6\u4e2d\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528 <code>useLoaderData<\/code> Hook \u6765\u8bbf\u95ee\u7531 <code>loader<\/code> \u52a0\u8f7d\u7684\u6570\u636e\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ src\/routes\/index.tsx\nimport { useLoaderData } from 'remix';\n\nexport default function Index() {\n  const data = useLoaderData();\n\n  return (\n    &lt;div&gt;\n      &lt;h1&gt;Welcome to Remix&lt;\/h1&gt;\n      &lt;p&gt;{data}&lt;\/p&gt;\n    &lt;\/div&gt;\n  );\n}<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">5. <strong>\u8868\u5355\u63d0\u4ea4\u548c\u6570\u636e\u5904\u7406<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Remix \u63d0\u4f9b\u4e86 <code>action<\/code> \u51fd\u6570\u6765\u5904\u7406\u8868\u5355\u63d0\u4ea4\u3002<code>action<\/code> \u7528\u4e8e\u5904\u7406\u6570\u636e\u66f4\u65b0\u3001\u63d0\u4ea4\u8868\u5355\u6216\u5176\u4ed6\u64cd\u4f5c\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">5.1 \u521b\u5efa\u4e00\u4e2a\u8868\u5355<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u6211\u4eec\u53ef\u4ee5\u5728 <code>about.tsx<\/code> \u9875\u9762\u4e2d\u521b\u5efa\u4e00\u4e2a\u8868\u5355\uff0c\u5141\u8bb8\u7528\u6237\u63d0\u4ea4\u6570\u636e\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/ src\/routes\/about.tsx\nimport { Form, redirect } from 'remix';\n\nexport let action = async ({ request }: { request: Request }) =&gt; {\n  const formData = new URLSearchParams(await request.text());\n  const name = formData.get('name');\n\n  \/\/ \u5047\u8bbe\u6211\u4eec\u5c06\u6570\u636e\u5b58\u50a8\u5230\u6570\u636e\u5e93\uff0c\u6a21\u62df\u6210\u529f\u8fd4\u56de\n  console.log('Received name:', name);\n\n  return redirect('\/');\n};\n\nexport default function About() {\n  return (\n    &lt;div&gt;\n      &lt;h1&gt;About Remix&lt;\/h1&gt;\n      &lt;Form method=\"post\"&gt;\n        &lt;label&gt;\n          Name:\n          &lt;input type=\"text\" name=\"name\" \/&gt;\n        &lt;\/label&gt;\n        &lt;button type=\"submit\"&gt;Submit&lt;\/button&gt;\n      &lt;\/Form&gt;\n    &lt;\/div&gt;\n  );\n}<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">5.2 <code>action<\/code> \u51fd\u6570<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\"><code>action<\/code> \u662f\u7528\u6765\u5904\u7406\u8868\u5355\u63d0\u4ea4\u7684\u51fd\u6570\u3002\u5b83\u4f1a\u5728\u8868\u5355\u88ab\u63d0\u4ea4\u65f6\u6267\u884c\uff0c\u5e76\u4e14\u53ef\u4ee5\u8fd4\u56de\u4e00\u4e2a\u54cd\u5e94\uff08\u4f8b\u5982\uff1a\u91cd\u5b9a\u5411\u3001JSON \u54cd\u5e94\u7b49\uff09\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\uff0c\u5f53\u7528\u6237\u63d0\u4ea4\u8868\u5355\u65f6\uff0c\u8868\u5355\u6570\u636e\u5c06\u901a\u8fc7 <code>request<\/code> \u5bf9\u8c61\u4f20\u9012\u7ed9 <code>action<\/code>\uff0c\u6211\u4eec\u4ece <code>formData<\/code> \u4e2d\u83b7\u53d6 <code>name<\/code> \u53c2\u6570\uff0c\u7136\u540e\u6a21\u62df\u5c06\u6570\u636e\u5904\u7406\u5e76\u8fd4\u56de\u91cd\u5b9a\u5411\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">5.3 \u63d0\u4ea4\u8868\u5355<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u5728 Remix \u4e2d\uff0c\u8868\u5355\u63d0\u4ea4\u662f\u901a\u8fc7 <code>Form<\/code> \u7ec4\u4ef6\u6765\u5b8c\u6210\u7684\uff0c<code>Form<\/code> \u7ec4\u4ef6\u4f1a\u81ea\u52a8\u5904\u7406\u5e8f\u5217\u5316\u548c\u63d0\u4ea4\u3002\u4f7f\u7528 <code>method=\"post\"<\/code> \u6765\u6307\u5b9a\u8868\u5355\u7684\u63d0\u4ea4\u65b9\u5f0f\uff08\u9ed8\u8ba4\u4e3a GET\uff09\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">6. <strong>\u90e8\u7f72 Remix \u5e94\u7528<\/strong><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Remix \u652f\u6301\u591a\u79cd\u90e8\u7f72\u5e73\u53f0\uff0c\u6700\u5e38\u89c1\u7684\u6709 Vercel\u3001Netlify\u3001Heroku\u3001Kubernetes \u7b49\u3002<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">6.1 \u90e8\u7f72\u5230 Vercel<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u5982\u679c\u4f60\u9009\u62e9 Vercel \u4f5c\u4e3a\u90e8\u7f72\u5e73\u53f0\uff0c\u90e8\u7f72\u8fc7\u7a0b\u975e\u5e38\u7b80\u5355\u3002\u4f60\u53ea\u9700\u8fde\u63a5 Remix \u9879\u76ee\u5230\u4f60\u7684 GitHub \u4ed3\u5e93\uff0c\u7136\u540e\u901a\u8fc7 Vercel \u81ea\u52a8\u90e8\u7f72\u5373\u53ef\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u5728 <a href=\"https:\/\/vercel.com\/\">Vercel<\/a> \u4e0a\u521b\u5efa\u4e00\u4e2a\u8d26\u6237\u5e76\u767b\u5f55\u3002<\/li>\n\n\n\n<li>\u9009\u62e9\u4f60\u7684 GitHub \u4ed3\u5e93\u5e76\u70b9\u51fb &#8220;Deploy&#8221;\u3002<\/li>\n\n\n\n<li>Vercel \u4f1a\u81ea\u52a8\u8bc6\u522b\u4f60\u7684 Remix \u9879\u76ee\u5e76\u5f00\u59cb\u90e8\u7f72\u3002<\/li>\n<\/ol>\n\n\n\n<h4 class=\"wp-block-heading\">6.2 \u90e8\u7f72\u5230 Netlify<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">\u7c7b\u4f3c\u4e8e Vercel\uff0cNetlify \u4e5f\u652f\u6301\u5feb\u901f\u90e8\u7f72 Remix \u5e94\u7528\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7 GitHub \u6216 GitLab \u90e8\u7f72 Remix\u3002<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u5728 <a href=\"https:\/\/www.netlify.com\/\">Netlify<\/a> \u521b\u5efa\u4e00\u4e2a\u8d26\u6237\u5e76\u767b\u5f55\u3002<\/li>\n\n\n\n<li>\u8fde\u63a5\u4f60\u7684 GitHub \u4ed3\u5e93\u3002<\/li>\n\n\n\n<li>\u914d\u7f6e\u90e8\u7f72\u547d\u4ee4\u4e3a <code>npm run build<\/code> \u548c\u8f93\u51fa\u76ee\u5f55\u4e3a <code>build<\/code>\u3002<\/li>\n<\/ol>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u603b\u7ed3<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Remix \u662f\u4e00\u4e2a\u73b0\u4ee3\u5316\u7684 React \u6846\u67b6\uff0c\u80fd\u591f\u6781\u5927\u5730\u63d0\u9ad8 Web \u5e94\u7528\u7684\u6027\u80fd\u548c\u5f00\u53d1\u8005\u4f53\u9a8c\u3002\u901a\u8fc7\u6587\u4ef6\u7cfb\u7edf\u8def\u7531\u3001\u6570\u636e\u52a0\u8f7d\u3001\u8868\u5355\u5904\u7406\u7b49\u529f\u80fd\uff0cRemix \u63d0\u4f9b\u4e86\u4e00\u79cd\u9ad8\u6548\u7684\u65b9\u5f0f\u6765\u6784\u5efa\u5177\u6709\u5f3a\u5927\u6027\u80fd\u7684 Web \u5e94\u7528\u3002\u5e0c\u671b\u672c\u6559\u7a0b\u80fd\u591f\u5e2e\u52a9\u4f60\u5feb\u901f\u4e0a\u624b Remix \u6846\u67b6\uff0c\u638c\u63e1\u5176\u6838\u5fc3\u6982\u5ff5\uff0c\u5e76\u5f00\u59cb\u6784\u5efa\u81ea\u5df1\u7684\u5e94\u7528\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Remix \u662f\u4e00\u4e2a\u73b0\u4ee3\u5316\u7684 React \u6846\u67b6\uff0c\u81f4\u529b\u4e8e\u63d0\u5347 Web \u5e94\u7528\u7684\u7528\u6237\u4f53\u9a8c\u3001\u6027\u80fd\u4ee5\u53ca\u5f00\u53d1\u8005\u4f53\u9a8c\u3002Remi [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[46],"tags":[],"class_list":["post-653","post","type-post","status-publish","format-standard","hentry","category-javascript"],"_links":{"self":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/653","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/comments?post=653"}],"version-history":[{"count":1,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/653\/revisions"}],"predecessor-version":[{"id":654,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/posts\/653\/revisions\/654"}],"wp:attachment":[{"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/media?parent=653"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/categories?post=653"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.laixuexila.com\/index.php\/wp-json\/wp\/v2\/tags?post=653"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}