/React_Phone

React的组件通信demo,你真的懂React吗?

Primary LanguageJavaScript

这是一个React的组件通信的demo

对于不是很了解组件通讯的同学来说这是一个福音,因为这个demo包含了所有的组件通讯的方法,相信聪明的你一定能快速上手

克隆文件夹,安装依赖 使用行命令npm start 来查看这个demo

This project was bootstrapped with Create React App.

你可以利用这些来做这些事情

npm start

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

The page will reload if you make edits.
You will 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

利用 build 来打包

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!

你只有一次机会可以反编译,这是无法挽回的,编译之后可以来配置config文件等等,加快学习的步伐!

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

Code Splitting

This section has moved here: https://facebook.github.io/create-react-app/docs/code-splitting

Analyzing the Bundle Size

This section has moved here: https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size

Making a Progressive Web App

This section has moved here: https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app

Advanced Configuration

This section has moved here: https://facebook.github.io/create-react-app/docs/advanced-configuration

Deployment

This section has moved here: https://facebook.github.io/create-react-app/docs/deployment

npm run build fails to minify

This section has moved here: https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify