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

13 lines
600 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: A React Environment Using a Remote Code Repository
localeTitle: 使用远程代码存储库的React环境
---
这是如何使用远程代码存储库创建非生产React环境。 我们将使用cdnjs.cloudflare.com 16.0.0 reactreact-dom和babel-standalone 6.26.0 实现这一目标。 babel-polyfill用于较旧的浏览器兼容性。
\`\`\`HTML
你好React
ReactDOM.render( <h1>Hello React</h1>, document.getElementById('helloreact'));
\`\`\` 如果此代码与html文件扩展名helloReact.html一起保存则可以在Web浏览器中打开 它将运行React和Babel。