Coder Social home page Coder Social logo

xsf0105 / react-redux-tutorial Goto Github PK

View Code? Open in Web Editor NEW
346.0 13.0 105.0 12.6 MB

Starter template for React v17, Redux, CSS Modules, React-Router 4

JavaScript 71.70% HTML 14.66% CSS 13.64%
react redux mock ant-design css-modules react17 typescript ts

react-redux-tutorial's Introduction

Getting Started with Create React App and Redux

This project was bootstrapped with Create React App, using the Redux and Redux Toolkit template.

Available Scripts

In the project directory, you can run:

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in your browser.

The page will reload when you make changes.
You may also see any lint errors in the console.

npm test

Launches the test runner in the interactive watch mode.
See the section about running tests for more information.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

The build is minified and the filenames include the hashes.
Your app is ready to be deployed!

See the section about deployment for more information.

npm run eject

Note: this is a one-way operation. Once you eject, you can't go back!

If you aren't satisfied with the build tool and configuration choices, you can eject at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except eject will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.

You don't have to ever use eject. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

react-redux-tutorial's People

Contributors

dependabot[bot] avatar xsf0105 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

react-redux-tutorial's Issues

请教一下关于使用方面的问题

大佬你好,我想请教几个问题:

  1. 我现在不打算用typescript,请问要去掉哪些相关的配置?
  2. 我想要调用真实的接口,请问我需要改哪些?我看npm start的时候默认起了一个服务当成服务器。

关于windows系统下npm run start(npm start)的一个问题

运行npm start(npm run start)报错

[email protected] start F:\项目\github\React-SPA-master
concurrently 'npm run server' 'npm run dev'

[0] 'np' �����ڲ����ⲿ���Ҳ���ǿ����еij���
[0] ���������ļ���
[1] 'run' �����ڲ����ⲿ���Ҳ���ǿ����еij���
[1] ���������ļ���
[2] 'server'' �����ڲ����ⲿ���Ҳ���ǿ����еij���
[2] ���������ļ���
[3] 'np' �����ڲ����ⲿ���Ҳ���ǿ����еij���
[3] ���������ļ���
[4] 'run' �����ڲ����ⲿ���Ҳ���ǿ����еij���
[4] ���������ļ���
[5] 'dev'' �����ڲ����ⲿ���Ҳ���ǿ����еij���
[5] ���������ļ���
[4] run exited with code 1
[3] np exited with code 1
[2] server' exited with code 1
[1] run exited with code 1
[0] np exited with code 1
[5] dev' exited with code 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: concurrently 'npm run server' 'npm run dev'
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

显示package.json文件的
"start": "concurrently 'npm run server' 'npm run dev' ",
这个地方应该修改为
"start": "concurrently "npm run server" "npm run dev" ",

Error with command: npm start

Compiled with problems:X

ERROR

Module not found: Error: Cannot find module 'C:\Users\p-c\Downloads\Github\react-redux-tutorial\node_modules\react-refresh\index.js'. Please verify that the package.json has a valid "main" entry

Error with command: npm start

PS C:\Users\p-c\Downloads\Github\react-redux-tutorial> npm start

[email protected] start
node scripts/start.js

node:internal/modules/cjs/loader:936
throw err;
^

Error: Cannot find module 'react-dev-utils/WatchMissingNodeModulesPlugin'
Require stack:

  • C:\Users\p-c\Downloads\Github\react-redux-tutorial\config\webpack.config.js
  • C:\Users\p-c\Downloads\Github\react-redux-tutorial\scripts\start.js
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at require (node:internal/modules/cjs/helpers:102:18) f
    at Object. (C:\Users\p-c\Downloads\Github\react-redux-tutorial\config\webpack.config.js:18:39)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19) {
    code: 'MODULE_NOT_FOUND',
    requireStack: [
    'C:\Users\p-c\Downloads\Github\react-redux-tutorial\config\webpack.config.js',
    'C:\Users\p-c\Downloads\Github\react-redux-tutorial\scripts\start.js'
    ]
    }

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.