没有合适的资源?快使用搜索试试~ 我知道了~
react-music:React构建的音乐WebApp
共85个文件
js:51个
png:8个
json:4个
需积分: 5 0 下载量 77 浏览量
2021-05-01
23:10:00
上传
评论
收藏 543KB ZIP 举报
温馨提示
一、项目说明 个人学习之作品,借鉴掘金大佬神三元的案例,为未来开发zune做技术储备。 二、组件优化使用 React.memo()优化 Component 的 2 个问题 只要执行 setState(),即使不改变状态数据, 组件也会重新 render() ==> 效率低 只当前组件重新 render(), 就会自动重新 render 子组件,纵使子组件没有用到父组件的任何数据 ==> 效率低 解决方式 1:重写 shouldComponentUpdate()方法 解决方式 2:使用 PureComponent 解决方式 3:本项目采用方案--React.memo()是一个高阶函数,它与 React.PureComponent 类似,但是一个函数组件而非一个类。 三、封装 scroll 组件和 forwardRef 的使用 scroll 的参数 Scroll.propTypes = {
资源推荐
资源详情
资源评论
收起资源包目录
react-music-master.zip (85个子文件)
react-music-master
package.json 1KB
desktop.ini 109B
src
baseUI
loading
index.js 1KB
loading-v2
index.js 1KB
scroll
index.js 5KB
header
index.js 2KB
horizen-item
index.js 2KB
index.js 464B
assets
iconfont
iconfont.eot 9KB
iconfont.ttf 9KB
iconfont.svg 36KB
iconfont.js 8KB
iconfont.woff 6KB
iconfont.woff2 5KB
demo.css 8KB
iconfont.html 35KB
iconfont.css 9KB
global-style.js 1KB
routes
index.js 1KB
api
config.js 3KB
storage.js 2KB
utils.js 1KB
storage.drawio.png 80KB
request.js 1KB
serviceWorker.js 5KB
application
Search
index.js 310B
Album
index.js 7KB
index.drawio.png 27KB
style.js 6KB
store
actionCreators.js 987B
index.js 338B
reducer.js 671B
constant.js 351B
Singers
zune.png 20KB
index.js 6KB
style.js 1KB
data.js 1KB
store
actionCreators.js 4KB
index.js 340B
reducer.js 1KB
constant.js 641B
Rank
index.js 3KB
style.js 2KB
store
index.js 2KB
Singer
index.js 2KB
style.js 2KB
Recommend
index.js 2KB
style.js 353B
store
actionCreators.js 1KB
index.js 373B
reducer.js 921B
constants.js 455B
SongList
index.js 2KB
style.js 2KB
Home
zune.png 20KB
index.js 1KB
style.js 1KB
components
slider
index.js 2KB
style.js 942B
list
zune.png 20KB
index.js 2KB
style.js 2KB
App.js 1KB
style.js 1KB
store
index.js 788B
reducer.js 705B
.idea
react-music.iml 458B
misc.xml 174B
vcs.xml 180B
modules.xml 274B
.gitignore 104B
inspectionProfiles
Project_Default.xml 468B
.gitignore 316B
public
logo192.png 5KB
manifest.json 492B
robots.txt 67B
index.html 788B
DOM节点关系图.png 35KB
music.jpg 120KB
logo512.png 9KB
favicon.ico 4KB
README.md 3KB
yarn.lock 489KB
.vscode
settings.json 112B
extensions.json 159B
共 85 条
- 1
资源评论
CyberStar
- 粉丝: 36
- 资源: 4686
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功