Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ReAct #7413

Closed
ruoxi321 opened this issue Jan 8, 2025 · 0 comments
Closed

ReAct #7413

ruoxi321 opened this issue Jan 8, 2025 · 0 comments

Comments

@ruoxi321
Copy link

ruoxi321 commented Jan 8, 2025

<title>Document</title>
<script src="../js/react.development.js"></script> <script src="../js/react-dom.development.js"></script>
<!-- 引入babel:
        1. ES6 ==> ES5
        2. jsx ==> js
-->
<script src="../js/babel.min.js"></script>

<script type="text/babel">
    // 1. 创建虚拟 DOM
    const VDOM = <h1>Hello,React</h1>

    // 2. 渲染到页面中的指定 DOM
    // ReactDOM.render(虚拟DOM,真实DOM)
    ReactDOM.render(VDOM,document.getElementById('test'))
</script>
@harish-sethuraman harish-sethuraman closed this as not planned Won't fix, can't repro, duplicate, stale Jan 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants