0.5 Enabling ES6 and JSX 启用 ES6和JSX

We recommend using React with Babel to let you use ES6 and JSX in your JavaScript code.

我们建议您React和Babel一起使用,这样您可以在JavaScript代码中使用ES6和JSX。

ES6 is a set of modern JavaScript features that make development easier,

ES6是一套现代的JavaScript功能,使开发更容易,

and JSX is an extension to the JavaScript language that works nicely with React.

JSX是JavaScript语言的扩展,它与React很好地工作。

The Babel setup instructions explain how to configure Babel in many different build environments.

Babel安装说明解释如何在许多不同的构建环境中配置Babel。

Make sure you install babel-preset-react and babel-preset-es2015 and enable them in your .babelrc configuration, and you're good to go.

确定你安装了babel-preset-react和babel-preset-es2015,并在你的.babelrc配置中启用它们,你做的好。

你可能感兴趣的:(0.5 Enabling ES6 and JSX 启用 ES6和JSX)