运行 ❯
获取您
自身
的网站
×
更改方向
保存代码
更改主题,暗色/亮色
前往 Spaces
<!DOCTYPE html> <html lang="en"> <title>myPage</title> <script src= "https://unpkg.com/react@16/umd/react.production.min.js"></script> <script src= "https://unpkg.com/react-dom@16/umd/react-dom.production.min.js"></script> <script src= "https://unpkg.com/babel-standalone@6.15.0/babel.min.js"></script> <body> <div id="root"></div> <script type="text/babel"> function Welcome() { return <h1>Hello React!</h1>; } ReactDOM.render(<Welcome />, document.getElementById('root')); </script> </body> </html>