【文件属性】:
文件名称:IETI_LAB2
文件大小:225KB
文件格式:ZIP
更新时间:2021-02-13 07:23:55
1.2React材料
使用Material-UI库React项目。
第1部分:创建登录组件
克隆存储库,安装并运行项目以验证其是否有效:
npm install
npm start
可能会报告一些漏洞。 别理他们。
从Material-UI安装core , icons和pickers依赖项到项目:
npm install @ material - ui / core
npm install @ material - ui / icons
npm install @ material - ui / pickers
您还可以将Material-UI依赖关系直接添加到package.json文件中,然后重新运行install命令。
{
"name" : "todo-app" ,
...
"dependencies" : {
"@material-ui/core"
【文件预览】:
IETI_LAB2-main
----.gitignore(2KB)
----package.json(613B)
----package-lock.json(947KB)
----src()
--------components()
--------index.js(253B)
--------TodoList.js(741B)
--------logo.svg(2KB)
--------App.js(1KB)
--------registerServiceWorker.js(5KB)
--------App.css(874B)
--------index.css(69B)
--------App.test.js(253B)
--------Todo.js(370B)
----public()
--------index.html(1KB)
--------favicon.ico(15KB)
--------manifest.json(317B)
----README.md(8KB)