/redux-demo

终究还是Redux

Primary LanguageJavaScriptMIT LicenseMIT

使用[Redux](https://redux.js.org/)和[Redux Toolkit],使用[Create React App](https://github.com/facebook/create-react-app)启动了该项目。https://redux-toolkit.js.org/)模板。

可用脚本

在项目目录中,可以运行:

yarn start

在开发模式下运行该应用。
打开[http:// localhost:3000](http:// localhost:3000)在浏览器中查看。

如果进行编辑,页面将重新加载。
您还将在控制台中看到任何棉绒错误。

yarn test

在交互式监视模式下启动测试运行器。
有关更多信息,请参见关于[运行测试](https://facebook.github.io/create-react-app/docs/running-tests)的部分。

yarn build

将生产用的“ app”构建到“ build”文件夹中。
它在生产模式下正确捆绑了“ React”,并优化了构建以获得最佳性能。

最小化了“ build”,文件名包含了哈希。
您的应用已准备好进行部署!

有关更多信息,请参见关于[deployment](https://facebook.github.io/create-react-app/docs/deployment)的部分。

yarn eject

注意:这是单向操作。 一旦退出,就无法返回!

如果您对构建工具和配置选择不满意,则可以随时“弹出”。 此命令将从项目中删除单个构建依赖项。

而是将所有配置文件和传递依赖项(Webpack,Babel,ESLint等)直接复制到您的项目中,以便您完全控制它们。 除了eject以外的所有命令仍然可以使用,但是它们将指向复制的脚本,因此您可以对其进行调整。 至此,您就可以依靠自己了。

您无需使用eject。 精选功能集适用于中小型部署,您不应该使用此功能。 但是,我们了解到,如果您在准备就绪时无法自定义该工具,它将不会有用。

了解更多

您可以在[创建React App文档](https://facebook.github.io/create-react-app/docs/getting-started)中了解更多信息。

要学习React,请查看[React文档](https://reactjs.org/)。

Code Splitting 代码分割

本节已移至此处: https://facebook.github.io/create-react-app/docs/code-splitting

Analyzing the Bundle Size 分析捆绑包大小

本节已移至此处: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size

Making a Progressive Web App 制作渐进式Web应用程序

本节已移至此处: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

Advanced Configuration 进阶设定

本节已移至此处: https://facebook.github.io/create-react-app/docs/advanced-configuration

Deployment 部署方式

本节已移至此处: https://facebook.github.io/create-react-app/docs/deployment

yarn build 无法缩小

本节已移至此处: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify