加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

react

发布时间:2020-12-15 20:24:53 所属栏目:百科 来源:网络整理
导读:CodePen : CodePen is a social development environment for front-end designers and developers.It’s the best place to build and deploy a website,show off your work,build test cases,and find inspiration.可以看到并修改别人写的前端项目,里面有

CodePen : CodePen is a social development environment for front-end designers and developers.It’s the best place to build and deploy a website,show off your work,build test cases,and find inspiration.可以看到并修改别人写的前端项目,里面有很酷炫的前端技术。

如何查看react.js所有的历史版本

react.js官方网站

直接引用

github的commit

ES2015文档

npm

node.js

按照react官方网站上面的文档一步步进行:
1. 运行一个Hello world在本地文件和本地编译器上

 1 <!DOCTYPE html>
 2 <html>
 3   <head>
 4     <meta charset="UTF-8" />
 5     <title>Hello World</title>
 6     <script src="https://unpkg.com/[email?protected]/umd/react.development.js"></script>
 7     <script src="https://unpkg.com/[email?protected]/umd/react-dom.development.js"></script>
 8     <script src="https://unpkg.com/[email?protected]/babel.min.js"></script>
 9   </head>
10   <body>
11     <div id="root"></div>
12     <script type="text/babel">
13 
14       ReactDOM.render(
15         <h1>Hello,world!</h1>,16         document.getElementById(root)
17       );
18 
19     </script>
20   </body>
21 </html>

?

我们可以看到,通过script外部JS文件的引入,包括在CodePen上显示的HelloWorld代码,他的主要“引擎”是Javascript,通过其语法将H5的内容展示出来。

  1. 安装开发环境
    使用npm、npx来安装环境,只需要通过终端输入几个简单的命令就可以啦~那么npm和npx究竟是什么呢?

npm是什么
npx是什么
npm官网

使用npm或者npx在控制台中输入命令即可:


webpack是什么

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读