前端学习(2275)vue造轮子之基本环境搭建

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="./node_modules/react/umd/react.development.js"></script>
    <script src="./node_modules/react-dom/umd/react-dom.development.js"></script>
    <script src="./node_modules/babel-standalone/babel.min.js"></script>
</head>

<body>
    <!-- 
        创建节点
     -->
    <div id="demoReact">

    </div>
    <script type="text/babel">
        let myDom=
        <h1>你好世界</h1>; ReactDOM.render(myDom,document.getElementById('demoReact'))
    </script>
</body>

</html>

运行结果

©️2020 CSDN 皮肤主题: 成长之路 设计师:Amelia_0503 返回首页