React 安装create-react-app npm install create-react-app -g 生成项目 create-react-app app 启动项目 cd app npm start react核心概念 元素(elements) 组件(components)