2
0
Jeremy Zheng 3 жил өмнө
parent
commit
5e9a6f59bd

BIN
dashboard/src/assets/nut/code.png


+ 12 - 0
dashboard/src/components/nut/Home.tsx

@@ -0,0 +1,12 @@
+import code_png from "../../assets/nut/code.png";
+
+const Widget = () => {
+  return (
+    <div>
+      <h1>Home</h1>
+      <img alt="code" src={code_png} />
+    </div>
+  );
+};
+
+export default Widget;

+ 6 - 0
documents/development/frontend/README.md

@@ -44,3 +44,9 @@ yarn start
 - [React 第三天: table](react-day-3/)
 - [React 第四天: http request](react-day-4/)
 - [React 第五天: page & component & redux](react-day-5/)
+
+### 其它例子
+
+- img 组件
+
+  ![img](img.png)

BIN
documents/development/frontend/img.png