music-app-react-local-storage React应用中本地存储演示

此项目是通过 Create React App 创建的,演示如何在React应用中使用 本地存储。项目提供了几个基本的脚本,您可以在项目目录中运行以下命令:

  • yarn start:在开发模式下启动应用,打开浏览器查看效果,编辑后页面自动刷新并显示任何控制台错误。
  • yarn test:启动交互式测试运行器,帮助您进行代码的自动测试。
  • yarn build:生成生产环境的应用,优化构建,确保最佳性能,并且文件名包含哈希值,准备部署。
  • yarn eject:此命令将移除单个生成依赖项,将所有配置文件和依赖项暴露,适用于对构建工具配置进行自定义。

此项目展示了如何结合 React 和本地存储来实现数据的持久化,适合初学者进行实践和学习。

zip
music-app-react-local-storage-master.zip 预估大小:36个文件
folder
music-app-react-local-storage-master 文件夹
folder
public 文件夹
file
manifest.json 492B
file
index.html 2KB
file
robots.txt 67B
file
favicon.ico 4KB
file
logo512.png 9KB
file
logo192.png 5KB
file
yarn.lock 583KB
folder
src 文件夹
folder
constants 文件夹
file
icon.js 309B
file
index.scss 36B
folder
components 文件夹
folder
PlaylistItems 文件夹
folder
AddPlaylistItem 文件夹
file
index.js 2KB
file
index.js 3KB
folder
Search 文件夹
file
index.js 864B
folder
LoadingIndicatorRow 文件夹
file
index.stories.js 314B
file
index.js 640B
folder
Songs 文件夹
file
index.js 3KB
folder
LoadingIcon 文件夹
file
index.stories.js 225B
file
index.js 309B
folder
Icon 文件夹
file
index.js 2KB
folder
NoResultsRow 文件夹
file
index.stories.js 634B
file
index.js 544B
folder
PlaylistItem 文件夹
folder
AddSong 文件夹
file
index.js 2KB
file
index.js 5KB
folder
Header 文件夹
file
index.js 266B
file
App.js 1KB
file
reportWebVitals.js 362B
file
App.test.js 246B
file
setupTests.js 241B
folder
hooks 文件夹
file
useLocalStorage.js 630B
file
usePageTitle.js 193B
file
index.js 169B
folder
.storybook 文件夹
file
main.js 199B
file
preview.js 277B
file
README.md 3KB
file
.gitignore 310B
file
package-lock.json 671KB
file
package.json 2KB
zip 文件大小:409.56KB