{"id":38338,"date":"2023-08-01T17:03:38","date_gmt":"2023-05-19T14:18:14","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%ae%9e%e8%b7%b5-100-%e4%b8%aa-react-%e5%ba%94%e7%94%a8%e6%8c%91%e6%88%98-06-%e4%b8%aa%e4%ba%ba%e8%b5%84%e6%96%99\/"},"modified":"2024-04-30T16:30:22","modified_gmt":"2024-04-30T08:30:22","slug":"%e5%ae%9e%e8%b7%b5-100-%e4%b8%aa-react-%e5%ba%94%e7%94%a8%e6%8c%91%e6%88%98-06-%e4%b8%aa%e4%ba%ba%e8%b5%84%e6%96%99","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%ae%9e%e8%b7%b5-100-%e4%b8%aa-react-%e5%ba%94%e7%94%a8%e6%8c%91%e6%88%98-06-%e4%b8%aa%e4%ba%ba%e8%b5%84%e6%96%99\/","title":{"rendered":"\u5b9e\u8df5 100 \u4e2a React \u5e94\u7528\u6311\u6218 \u2014\u2014 06 \u4e2a\u4eba\u8d44\u6599 \u2014\u2014"},"content":{"rendered":"<h1>\u9996\u5148<\/h1>\n<p>\u8fd9\u7bc7\u6587\u7ae0\u662f\u4e3a\u4e86\u53c2\u4e0e@Sicut_study\u7684\u3010React\u5e94\u7528\u6311\u6218\u767e\u672c\u3011\u7cfb\u5217\u5e76\u8fdb\u884c\u8f93\u51fa\u800c\u5199\u7684\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u5b9f\u88c5\u30eb\u30fc\u30eb\u3084\u6210\u679c\u7269\u306e\u9054\u6210\u6761\u4ef6\u306f\u5143\u8a18\u4e8b\u306b\u5f93\u3046\u3082\u306e\u3068\u3057\u307e\u3059\u3002<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u5143\u8a18\u4e8b\u3068\u306e\u5dee\u5225\u70b9\u3068\u3057\u3066\u3001\u5177\u4f53\u7684\u306b\u81ea\u5206\u304c\u3069\u3093\u306a\u5b9f\u88c5\u3092\u884c\u3063\u305f\u306e\u304b\uff08\u3068\u5fc5\u8981\u306b\u5fdc\u3058\u3066\u89e3\u8aac\uff09\u3092\u8a18\u8f09\u3057\u307e\u3059\u3002<\/ul>\n<p>\u6211\u7684\u76ee\u6807\u662f\u8ddf\u968fSicut_study\u7684100\u5929React\u6559\u7a0b\uff0c\u5e76\u5b66\u4e60100\u5929React\u3002<\/p>\n<p>\u8fd9\u7bc7\u539f\u6587\u5728\u8fd9\u91cc\u3002<\/p>\n<p>&nbsp;<\/p>\n<h1>\u4e0a\u4e00\u7bc7\u6587\u7ae0<\/h1>\n<p>&nbsp;<\/p>\n<h1>\u8bf7\u89e3\u91ca\u8fd9\u4e2a\u4e8b\u60c5<\/h1>\n<p>\u521b\u5efa\u80fd\u591f\u751f\u6210\u4e2a\u4eba\u8d44\u6599\u5361\u7684\u670d\u52a1<\/p>\n<h2>\u89c4\u5219<\/h2>\n<p>\u5f15\u81ea\u539f\u6587\u6587\u7ae0<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u4e3b\u8981\u306a\u30e9\u30a4\u30d6\u30e9\u30ea\u3084\u30d5\u30ec\u30fc\u30e0\u30ef\u30fc\u30af\u306fReact\u3067\u3042\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u304c\u3001\u305d\u306e\u4ed6\u306e\u30c4\u30fc\u30eb\u3084\u30e9\u30a4\u30d6\u30e9\u30ea\uff08\u4f8b: Redux, Next.js, Styled Components\u306a\u3069\uff09\u3092\u7d44\u307f\u5408\u308f\u305b\u3066\u4f7f\u7528\u3059\u308b\u3053\u3068\u306f\u81ea\u7531<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">TypeScript\u3092\u5229\u7528\u3059\u308b<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u8981\u4ef6\u3092\u307f\u305f\u305b\u3070\u30c7\u30b6\u30a4\u30f3\u306a\u3069\u306f\u81ea\u7531<\/ul>\n<h2>\u8fbe\u5230\u8981\u6c42<\/h2>\n<p>\u4ece\u539f\u6587\u4e2d\u5f15\u7528<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30e6\u30fc\u30b6\u30fc\u304c\u540d\u524d\u3001\u8a95\u751f\u65e5\u3001\u96fb\u8a71\u756a\u53f7\u3092\u5165\u529b\u3057\u3001\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u5199\u771f\u3092\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3067\u304d\u308b<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30a2\u30c3\u30d7\u30ed\u30fc\u30c9\u3055\u308c\u305f\u753b\u50cf\u304c\u30d7\u30ec\u30d3\u30e5\u30fc\u3068\u3057\u3066\u8868\u793a\u3055\u308c\u308b<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u30e6\u30fc\u30b6\u30fc\u304c\u751f\u6210\u3057\u305f\u30d7\u30ed\u30d5\u30a3\u30fc\u30eb\u30ab\u30fc\u30c9\u3092PNG\u5f62\u5f0f\u3067\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u308b<\/ul>\n<h1>\u5b9e\u65bd<\/h1>\n<p>\u672c\u6587\u5c06\u6309\u7167\u4ee5\u4e0b\u65b9\u9488\u8fdb\u884c\u5b9e\u65bd\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u5404UI\u30d1\u30fc\u30c4\u3092\u30b3\u30f3\u30dd\u30fc\u30cd\u30f3\u30c8\u5316\u3059\u308b<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u6a5f\u80fd\u306e\u5b9f\u88c5\u306b\u306fhtml2canvas\u3068jspdf\u3092\u6d3b\u7528\u3059\u308b<\/ul>\n<p>\u7a0b\u5f0f\u78bc\u5982\u4e0b\u6240\u793a\u3002<\/p>\n<details>src\/components\/Label.tsxsrc\/components\/Label.tsx<br \/>\n\/** @jsxImportSource @emotion\/react *\/<br \/>\nimport { css } from &#8220;@emotion\/react&#8221;;<\/p>\n<p>interface LabelProps {<br \/>\nhtmlFor: string;<br \/>\nchildren: React.ReactNode;<br \/>\n}<\/p>\n<p>const labelStyle = css`<br \/>\nmargin-bottom: 5px;<br \/>\nfont-weight: bold;<br \/>\n`;<\/p>\n<p>const Label = ({ htmlFor, children }: LabelProps) =&gt; {<br \/>\nreturn (<br \/>\n<label><br \/>\n{children}<br \/>\n<\/label><br \/>\n);<br \/>\n};<\/p>\n<p>export default Label;<\/p>\n<p>src\/components\/Label.tsx<\/p>\n<p>src\/components\/Label.tsx<br \/>\n\/** @jsxImportSource @emotion\/react *\/<br \/>\nimport { css } from &#8220;@emotion\/react&#8221;;<\/p>\n<p>interface LabelProps {<br \/>\nhtmlFor: string;<br \/>\nchildren: React.ReactNode;<br \/>\n}<\/p>\n<p>const labelStyle = css`<br \/>\nmargin-bottom: 5px;<br \/>\nfont-weight: bold;<br \/>\n`;<\/p>\n<p>const Label = ({ htmlFor, children }: LabelProps) =&gt; {<br \/>\nreturn (<br \/>\n<label><br \/>\n{children}<br \/>\n<\/label><br \/>\n);<br \/>\n};<\/p>\n<p>export default Label;<\/p>\n<\/details>\n<details>src\/components\/InputField.tsxsrc\/components\/InputField.tsx<br \/>\n\/** @jsxImportSource @emotion\/react *\/<br \/>\nimport { css } from &#8220;@emotion\/react&#8221;;<br \/>\nimport Label from &#8220;.\/Label&#8221;;<\/p>\n<p>interface InputFieldProps {<br \/>\nlabel: string;<br \/>\ntype: string;<br \/>\nname: string;<br \/>\nvalue: string;<br \/>\nonChange: (e: React.ChangeEvent) =&gt; void;<br \/>\n}<\/p>\n<p>const inputStyle = css`<br \/>\nwidth: 100%;<br \/>\npadding: 8px 12px;<br \/>\nmargin-bottom: 10px;<br \/>\nborder: 1px solid #ccc;<br \/>\nborder-radius: 4px;<br \/>\nbox-sizing: border-box;<\/p>\n<p>&amp;:focus {<br \/>\nborder-color: #007bff;<br \/>\noutline: none;<br \/>\n}<br \/>\n`;<\/p>\n<p>const InputField = ({<br \/>\nlabel,<br \/>\ntype,<br \/>\nname,<br \/>\nvalue,<br \/>\nonChange,<br \/>\n}: InputFieldProps) =&gt; {<br \/>\nreturn (<\/p>\n<div><label>{label}<\/label><br \/>\n<input id=\"{name}\" name=\"{name}\" type=\"{type}\" value=\"{value}\" \/><\/div>\n<p>);<br \/>\n};<\/p>\n<p>export default InputField;<br \/>\nsrc\/components\/InputField.tsx<br \/>\n\/** @jsxImportSource @emotion\/react *\/<br \/>\nimport { css } from &#8220;@emotion\/react&#8221;;<br \/>\nimport Label from &#8220;.\/Label&#8221;;<\/p>\n<p>interface InputFieldProps {<br \/>\nlabel: string;<br \/>\ntype: string;<br \/>\nname: string;<br \/>\nvalue: string;<br \/>\nonChange: (e: React.ChangeEvent) =&gt; void;<br \/>\n}<\/p>\n<p>const inputStyle = css`<br \/>\nwidth: 100%;<br \/>\npadding: 8px 12px;<br \/>\nmargin-bottom: 10px;<br \/>\nborder: 1px solid #ccc;<br \/>\nborder-radius: 4px;<br \/>\nbox-sizing: border-box;<\/p>\n<p>&amp;:focus {<br \/>\nborder-color: #007bff;<br \/>\noutline: none;<br \/>\n}<br \/>\n`;<\/p>\n<p>const InputField = ({ label, type, name, value, onChange }: InputFieldProps) =&gt; {<br \/>\nreturn (<\/p>\n<div><label>{label}<\/label><br \/>\n<input id=\"{name}\" name=\"{name}\" type=\"{type}\" value=\"{value}\" \/><\/div>\n<p>);<br \/>\n};<\/p>\n<p>export default InputField;<\/p>\n<\/details>\n<details>src\/components\/ImageUpload.tsxsrc\/components\/ImageUpload.tsx<br \/>\n\/** @jsxImportSource @emotion\/react *\/<br \/>\nimport { useState } from &#8220;react&#8221;;<br \/>\nimport { css } from &#8220;@emotion\/react&#8221;;<br \/>\nimport Label from &#8220;.\/Label&#8221;;<\/p>\n<p>interface ImageUploadProps {<br \/>\nlabel: string;<br \/>\nonImageChange: (file: File | null) =&gt; void;<br \/>\n}<\/p>\n<p>const containerStyle = css`<br \/>\ndisplay: flex;<br \/>\nflex-direction: column;<br \/>\nalign-items: flex-start;<br \/>\nmargin-bottom: 20px;<br \/>\n`;<\/p>\n<p>const ImageUpload = ({ label, onImageChange }: ImageUploadProps) =&gt; {<br \/>\nconst [previewUrl, setPreviewUrl] = useState(&#8220;&#8221;);<\/p>\n<p>const handleImageChange = (e: React.ChangeEvent) =&gt; {<br \/>\nif (e.target.files &amp;&amp; e.target.files[0]) {<br \/>\nconst file = e.target.files[0];<br \/>\nsetPreviewUrl(URL.createObjectURL(file));<br \/>\nonImageChange(file);<br \/>\n} else {<br \/>\nonImageChange(null);<br \/>\n}<br \/>\n};<\/p>\n<p>return (<\/p>\n<div><label>{label}<\/label><br \/>\n<input id=\"image-upload\" accept=\"image\/*\" type=\"file\" \/><\/div>\n<p>);<br \/>\n};<\/p>\n<p>export default ImageUpload;<\/p>\n<p>src\/components\/ImageUpload.tsx\u7684\u5185\u5bb9\u5982\u4e0b\uff1a<\/p>\n<p>src\/components\/ImageUpload.tsx<br \/>\n\/** @jsxImportSource @emotion\/react *\/<br \/>\nimport { useState } from &#8220;react&#8221;;<br \/>\nimport { css } from &#8220;@emotion\/react&#8221;;<br \/>\nimport Label from &#8220;.\/Label&#8221;;<\/p>\n<p>interface ImageUploadProps {<br \/>\nlabel: string;<br \/>\nonImageChange: (file: File | null) =&gt; void;<br \/>\n}<\/p>\n<p>const containerStyle = css`<br \/>\ndisplay: flex;<br \/>\nflex-direction: column;<br \/>\nalign-items: flex-start;<br \/>\nmargin-bottom: 20px;<br \/>\n`;<\/p>\n<p>const ImageUpload = ({ label, onImageChange }: ImageUploadProps) =&gt; {<br \/>\nconst [previewUrl, setPreviewUrl] = useState(&#8220;&#8221;);<\/p>\n<p>const handleImageChange = (e: React.ChangeEvent) =&gt; {<br \/>\nif (e.target.files &amp;&amp; e.target.files[0]) {<br \/>\nconst file = e.target.files[0];<br \/>\nsetPreviewUrl(URL.createObjectURL(file));<br \/>\nonImageChange(file);<br \/>\n} else {<br \/>\nonImageChange(null);<br \/>\n}<br \/>\n};<\/p>\n<p>return (<\/p>\n<div><label>{label}<\/label><br \/>\n<input id=\"image-upload\" accept=\"image\/*\" type=\"file\" \/><\/div>\n<p>);<br \/>\n};<\/p>\n<p>export default ImageUpload;<\/p>\n<\/details>\n<details>src\/components\/ProfileCard.tsxsrc\/components\/ProfileCard.tsx<br \/>\n\/** @jsxImportSource @emotion\/react *\/<br \/>\nimport { css } from &#8220;@emotion\/react&#8221;;<\/p>\n<p>interface ProfileCardProps {<br \/>\nname: string;<br \/>\nbirthday: string;<br \/>\nphoneNumber: string;<br \/>\nphoto: string;<br \/>\n}<\/p>\n<p>const cardStyle = css`<br \/>\npadding: 20px;<br \/>\nwidth: 100%;<br \/>\n`;<\/p>\n<p>const photoContainerStyle = css`<br \/>\ndisplay: flex;<br \/>\njustify-content: center;<br \/>\nwidth: 100%;<br \/>\n`;<\/p>\n<p>const photoStyle = css`<br \/>\nwidth: 250px;<br \/>\nheight: 250px;<br \/>\nborder-radius: 50%;<br \/>\nobject-fit: cover;<br \/>\n`;<\/p>\n<p>const textStyle = css`<br \/>\ntext-align: center;<br \/>\nmargin: 10px 0;<br \/>\n`;<\/p>\n<p>const ProfileCard = ({<br \/>\nname,<br \/>\nbirthday,<br \/>\nphoneNumber,<br \/>\nphoto,<br \/>\n}: ProfileCardProps) =&gt; {<br \/>\nreturn (<\/p>\n<div id=\"profile-card\">\n<div>{photo &amp;&amp; <img decoding=\"async\" src=\"{photo}\" alt=\"Profile\" \/>}<\/div>\n<h3>{name}<\/h3>\n<p>{birthday}<\/p>\n<p>{phoneNumber}<\/p>\n<\/div>\n<p>);<br \/>\n};<\/p>\n<p>export default ProfileCard;<\/p>\n<\/details>\n<details>src\/App.tsxsrc\/App.tsx<br \/>\n\/** @jsxImportSource @emotion\/react *\/<br \/>\nimport { useState } from &#8220;react&#8221;;<br \/>\nimport { css } from &#8220;@emotion\/react&#8221;;<br \/>\nimport InputField from &#8220;.\/components\/InputField&#8221;;<br \/>\nimport ImageUpload from &#8220;.\/components\/ImageUpload&#8221;;<br \/>\nimport ProfileCard from &#8220;.\/components\/ProfileCard&#8221;;<br \/>\nimport html2canvas from &#8220;html2canvas&#8221;;<br \/>\nimport jsPDF from &#8220;jspdf&#8221;;<\/p>\n<p>interface UserProfile {<br \/>\nname: string;<br \/>\nbirthday: string;<br \/>\nphoneNumber: string;<br \/>\nphoto: string;<br \/>\n}<\/p>\n<p>const appContainerStyle = css`<br \/>\ndisplay: flex;<br \/>\njustify-content: center;<br \/>\nalign-items: flex-start;<br \/>\npadding: 20px;<br \/>\nmax-width: 900px;<br \/>\nmargin: 0 auto;<br \/>\n`;<\/p>\n<p>const formContainerStyle = css`<br \/>\nwidth: 35%;<br \/>\nmargin-right: 20px;<br \/>\n`;<\/p>\n<p>const cardContainerStyle = css`<br \/>\nwidth: 45%;<br \/>\nheight: 400px;<br \/>\ndisplay: flex;<br \/>\njustify-content: center;<br \/>\nalign-items: center;<br \/>\nborder: 1px solid #ddd;<br \/>\nborder-radius: 8px;<br \/>\noverflow: hidden;<br \/>\n`;<\/p>\n<p>const downloadButtonStyle = css`<br \/>\nbackground-color: #4caf50;<br \/>\ncolor: white;<br \/>\npadding: 10px 20px;<br \/>\ntext-align: center;<br \/>\ntext-decoration: none;<br \/>\ndisplay: inline-block;<br \/>\nfont-size: 16px;<br \/>\ncursor: pointer;<br \/>\nborder: none;<br \/>\nborder-radius: 4px;<br \/>\nwidth: 100%;<br \/>\n`;<\/p>\n<p>const App = () =&gt; {<br \/>\nconst [userProfile, setUserProfile] = useState({<br \/>\nname: &#8220;&#8221;,<br \/>\nbirthday: &#8220;&#8221;,<br \/>\nphoneNumber: &#8220;&#8221;,<br \/>\nphoto: &#8220;&#8221;,<br \/>\n});<\/p>\n<p>const handleInputChange = (e: React.ChangeEvent) =&gt; {<br \/>\nsetUserProfile({ &#8230;userProfile, [e.target.name]: e.target.value });<br \/>\n};<\/p>\n<p>const handleImageChange = (file: File | null) =&gt; {<br \/>\nif (file) {<br \/>\nsetUserProfile({ &#8230;userProfile, photo: URL.createObjectURL(file) });<br \/>\n} else {<br \/>\nsetUserProfile({ &#8230;userProfile, photo: &#8220;&#8221; });<br \/>\n}<br \/>\n};<\/p>\n<p>const handleDownload = async () =&gt; {<br \/>\nconst card = document.getElementById(&#8220;profile-card&#8221;);<br \/>\nif (card) {<br \/>\nconst canvas = await html2canvas(card);<br \/>\nconst imgData = canvas.toDataURL(&#8220;image\/png&#8221;);<br \/>\nconst pdf = new jsPDF();<\/p>\n<p>const imgWidth = 210;<br \/>\nconst imgHeight = (canvas.height * imgWidth) \/ canvas.width;<\/p>\n<p>pdf.addImage(imgData, &#8220;PNG&#8221;, 0, 0, imgWidth, imgHeight);<br \/>\npdf.save(&#8220;profile-card.pdf&#8221;);<br \/>\n}<br \/>\n};<\/p>\n<p>return (<\/p>\n<div>\n<div>\n<p><button><br \/>\n\u4e0b\u8f7d<br \/>\n<\/button><\/div>\n<div><\/div>\n<\/div>\n<p>);<br \/>\n};<\/p>\n<p>export default App;<\/p>\n<\/details>\n<h1>\u505a\u597d<\/h1>\n<p>\u5b8c\u6210\u7684\u5f62\u5f0f\u5982\u4e0b\u3002<br \/>\n\u4e0b\u8f7d\u4e5f\u80fd\u6b63\u5e38\u8fd0\u884c\u3002<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d333937434c4406c64cca\/27-0.png\" alt=\"image.png\" \/><\/div>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d333937434c4406c64cca\/28-0.png\" alt=\"image.png\" \/><\/div>\n<h1>\u6700\u540e<\/h1>\n<p>\u968f\u7740\u65f6\u95f4\u7684\u63a8\u79fb\uff0c\u5b9e\u65bd\u53d8\u5f97\u8d8a\u6765\u8d8a\u8017\u65f6\u3002\u6211\u5728\u8003\u8651\u4e0b\u6b21\u662f\u5426\u5f15\u5165UI\u5e93\u3002<\/p>\n<p>\u6211\u5c06\u7ee7\u7eed\u52aa\u529b\uff0c\u4ee5\u5b8c\u6210100\u6b21\u6bd4\u8d5b\u4e3a\u76ee\u6807\u3002\u5e0c\u671b\u80fd\u5f97\u5230\u652f\u6301\u7684\u670b\u53cb\u4eec\u80fd\u591f\u5173\u6ce8\u6211\uff0c\u975e\u5e38\u6b22\u8fce\u3002\u5e0c\u671b\u80fd\u83b7\u5f97\u70b9\u8d5e\u548c\u6536\u85cf\u3002<\/p>\n<p>\u518d\u89c1\u3002<\/p>\n<h1>\u4e0b\u4e00\u7bc7\u6587\u7ae0<\/h1>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148 \u8fd9\u7bc7\u6587\u7ae0\u662f\u4e3a\u4e86\u53c2\u4e0e@Sicut_study\u7684\u3010React\u5e94\u7528\u6311\u6218\u767e\u672c\u3011\u7cfb\u5217\u5e76\u8fdb\u884c\u8f93\u51fa\u800c\u5199\u7684\u3002 \u5b9f\u88c5\u30eb\u30fc\u30eb [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-38338","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u5b9e\u8df5 100 \u4e2a React \u5e94\u7528\u6311\u6218 \u2014\u2014 06 \u4e2a\u4eba\u8d44\u6599 \u2014\u2014 - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5b9e\u8df5-100-\u4e2a-react-\u5e94\u7528\u6311\u6218-06-\u4e2a\u4eba\u8d44\u6599\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u5b9e\u8df5 100 \u4e2a React \u5e94\u7528\u6311\u6218 \u2014\u2014 06 \u4e2a\u4eba\u8d44\u6599 \u2014\u2014\" \/>\n<meta property=\"og:description\" content=\"\u9996\u5148 \u8fd9\u7bc7\u6587\u7ae0\u662f\u4e3a\u4e86\u53c2\u4e0e@Sicut_study\u7684\u3010React\u5e94\u7528\u6311\u6218\u767e\u672c\u3011\u7cfb\u5217\u5e76\u8fdb\u884c\u8f93\u51fa\u800c\u5199\u7684\u3002 \u5b9f\u88c5\u30eb\u30fc\u30eb [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u5b9e\u8df5-100-\u4e2a-react-\u5e94\u7528\u6311\u6218-06-\u4e2a\u4eba\u8d44\u6599\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-05-19T14:18:14+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-30T08:30:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d333937434c4406c64cca\/27-0.png\" \/>\n<meta name=\"author\" content=\"\u96c5, \u609f\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u96c5, \u609f\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%ae%9e%e8%b7%b5-100-%e4%b8%aa-react-%e5%ba%94%e7%94%a8%e6%8c%91%e6%88%98-06-%e4%b8%aa%e4%ba%ba%e8%b5%84%e6%96%99\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%ae%9e%e8%b7%b5-100-%e4%b8%aa-react-%e5%ba%94%e7%94%a8%e6%8c%91%e6%88%98-06-%e4%b8%aa%e4%ba%ba%e8%b5%84%e6%96%99\/\",\"name\":\"\u5b9e\u8df5 100 \u4e2a React \u5e94\u7528\u6311\u6218 \u2014\u2014 06 \u4e2a\u4eba\u8d44\u6599 \u2014\u2014 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-05-19T14:18:14+00:00\",\"dateModified\":\"2024-04-30T08:30:22+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%ae%9e%e8%b7%b5-100-%e4%b8%aa-react-%e5%ba%94%e7%94%a8%e6%8c%91%e6%88%98-06-%e4%b8%aa%e4%ba%ba%e8%b5%84%e6%96%99\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%ae%9e%e8%b7%b5-100-%e4%b8%aa-react-%e5%ba%94%e7%94%a8%e6%8c%91%e6%88%98-06-%e4%b8%aa%e4%ba%ba%e8%b5%84%e6%96%99\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%ae%9e%e8%b7%b5-100-%e4%b8%aa-react-%e5%ba%94%e7%94%a8%e6%8c%91%e6%88%98-06-%e4%b8%aa%e4%ba%ba%e8%b5%84%e6%96%99\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u5b9e\u8df5 100 \u4e2a React \u5e94\u7528\u6311\u6218 \u2014\u2014 06 \u4e2a\u4eba\u8d44\u6599 \u2014\u2014\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6\",\"name\":\"\u96c5, \u609f\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"caption\":\"\u96c5, \u609f\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e5%ae%9e%e8%b7%b5-100-%e4%b8%aa-react-%e5%ba%94%e7%94%a8%e6%8c%91%e6%88%98-06-%e4%b8%aa%e4%ba%ba%e8%b5%84%e6%96%99\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u5b9e\u8df5 100 \u4e2a React \u5e94\u7528\u6311\u6218 \u2014\u2014 06 \u4e2a\u4eba\u8d44\u6599 \u2014\u2014 - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/\u5b9e\u8df5-100-\u4e2a-react-\u5e94\u7528\u6311\u6218-06-\u4e2a\u4eba\u8d44\u6599\/","og_locale":"zh_CN","og_type":"article","og_title":"\u5b9e\u8df5 100 \u4e2a React \u5e94\u7528\u6311\u6218 \u2014\u2014 06 \u4e2a\u4eba\u8d44\u6599 \u2014\u2014","og_description":"\u9996\u5148 \u8fd9\u7bc7\u6587\u7ae0\u662f\u4e3a\u4e86\u53c2\u4e0e@Sicut_study\u7684\u3010React\u5e94\u7528\u6311\u6218\u767e\u672c\u3011\u7cfb\u5217\u5e76\u8fdb\u884c\u8f93\u51fa\u800c\u5199\u7684\u3002 \u5b9f\u88c5\u30eb\u30fc\u30eb [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u5b9e\u8df5-100-\u4e2a-react-\u5e94\u7528\u6311\u6218-06-\u4e2a\u4eba\u8d44\u6599\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-05-19T14:18:14+00:00","article_modified_time":"2024-04-30T08:30:22+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d333937434c4406c64cca\/27-0.png"}],"author":"\u96c5, \u609f","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u96c5, \u609f","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%ae%9e%e8%b7%b5-100-%e4%b8%aa-react-%e5%ba%94%e7%94%a8%e6%8c%91%e6%88%98-06-%e4%b8%aa%e4%ba%ba%e8%b5%84%e6%96%99\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%ae%9e%e8%b7%b5-100-%e4%b8%aa-react-%e5%ba%94%e7%94%a8%e6%8c%91%e6%88%98-06-%e4%b8%aa%e4%ba%ba%e8%b5%84%e6%96%99\/","name":"\u5b9e\u8df5 100 \u4e2a React \u5e94\u7528\u6311\u6218 \u2014\u2014 06 \u4e2a\u4eba\u8d44\u6599 \u2014\u2014 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-05-19T14:18:14+00:00","dateModified":"2024-04-30T08:30:22+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%ae%9e%e8%b7%b5-100-%e4%b8%aa-react-%e5%ba%94%e7%94%a8%e6%8c%91%e6%88%98-06-%e4%b8%aa%e4%ba%ba%e8%b5%84%e6%96%99\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e5%ae%9e%e8%b7%b5-100-%e4%b8%aa-react-%e5%ba%94%e7%94%a8%e6%8c%91%e6%88%98-06-%e4%b8%aa%e4%ba%ba%e8%b5%84%e6%96%99\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%ae%9e%e8%b7%b5-100-%e4%b8%aa-react-%e5%ba%94%e7%94%a8%e6%8c%91%e6%88%98-06-%e4%b8%aa%e4%ba%ba%e8%b5%84%e6%96%99\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u5b9e\u8df5 100 \u4e2a React \u5e94\u7528\u6311\u6218 \u2014\u2014 06 \u4e2a\u4eba\u8d44\u6599 \u2014\u2014"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6","name":"\u96c5, \u609f","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","caption":"\u96c5, \u609f"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e5%ae%9e%e8%b7%b5-100-%e4%b8%aa-react-%e5%ba%94%e7%94%a8%e6%8c%91%e6%88%98-06-%e4%b8%aa%e4%ba%ba%e8%b5%84%e6%96%99\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/38338","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=38338"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/38338\/revisions"}],"predecessor-version":[{"id":93013,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/38338\/revisions\/93013"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=38338"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=38338"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=38338"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}