Files
freeCodeCamp/guide/chinese/react/a-react-environment-using-a-remote-code-repository/index.md
2018-10-16 21:32:40 +05:30

600 B
Raw Blame History

title, localeTitle
title localeTitle
A React Environment Using a Remote Code Repository 使用远程代码存储库的React环境

这是如何使用远程代码存储库创建非生产React环境。 我们将使用cdnjs.cloudflare.com 16.0.0 reactreact-dom和babel-standalone 6.26.0 实现这一目标。 babel-polyfill用于较旧的浏览器兼容性。

```HTML

你好React

ReactDOM.render(

Hello React

, document.getElementById('helloreact'));

``` 如果此代码与html文件扩展名helloReact.html一起保存则可以在Web浏览器中打开 它将运行React和Babel。