【文件属性】:
文件名称:pokedex:一个示例的React应用程序构建了“旧方法”
文件大小:197KB
文件格式:ZIP
更新时间:2021-05-06 12:20:57
JavaScript
口袋妖怪
用旧方法构建的示例React应用程序。 它由。
下载代码
git clone https://github.com/mxstbr/pokedex
cd pokedex
yarn install
如果你没有yarn安装,运行npm install --global yarn事先!
在本地运行应用
yarn start
在开发模式下运行应用程序。 打开在浏览器中查看它。
如果您进行编辑,则页面将重新加载。 您还将在控制台中看到任何棉绒错误。
更改延迟
API库引入了一些人为延迟,以使微调程序更加突出。
为了在不需要微调器的情况下提高开发速度,可以在src/api/pokeapi.js编辑MIN_DELAY_MS和MAX_DELAY_MS变量!
【文件预览】:
pokedex-master
----public()
--------manifest.json(306B)
--------index.html(2KB)
--------favicon.ico(4KB)
----yarn.lock(482KB)
----src()
--------columns()
--------index.css(55B)
--------components()
--------App.js(1KB)
--------api()
--------index.js(198B)
----.prettierrc(2B)
----README.md(859B)
----.gitignore(13B)
----package.json(980B)