开始react

#安装 create-react-app
从 React 文档中我们了解到,create-React-app CLI 使创建一个已经可以工作的应用程序变得非常容易。 它已经遵循了 React 社区建议的最佳实践!

  • To install 安装create-react-app 创造-反应-应用 globally, type the following at the prompt: 在全局中,在提示符处输入以下命令:
yarn global add [email protected]

要了解这个 CLI 提供的各种命令的更多信息,请在提示符下输入:

create-react-app --help
  • 使用 create-React-app 生成和服务一个 React Project
create-react-app confusion
  • Move to the 移动到confusion 混乱 folder and type the following at the prompt:
yarn start

配置你的 React 项目使用 Reactstrap

yarn add [email protected]
yarn add [email protected]
yarn add [email protected]
发布了11 篇原创文章 · 获赞 0 · 访问量 192

猜你喜欢

转载自blog.csdn.net/gongranr/article/details/104105553
今日推荐