如何设置React? [英] How do I setup React?

查看:66
本文介绍了如何设置React?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请,我只是想开始学习React,但是我不确定如何安装它。建议使用Browserify,但我以前从未使用过它,所以我很困惑。

Please, I just want to start learning React, but I am not sure how to install it. Browserify was recommended but I have never used it before so I am confused.

在执行以下命令后: npm install --save react react-dom babelify babel-preset-react ,下一步该怎么做?如何创建一个文件夹并开始使用React?

After this command: npm install --save react react-dom babelify babel-preset-react, what do I do next? How do I create a folder and start using React? And what does this other command mean, browserify -t [ babelify --presets [ react ] ] main.js -o bundle.js?

推荐答案

我建议从官方教程,而不是入门页面。

I'd recommend starting with the official tutorial instead of the getting started page.

您可能还会发现这些教程也很有帮助:

You might also find these tutorials helpful as well:

  • Learning React & Concepts
  • Getting Started
  • Node.js and React

这篇关于如何设置React?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆