<!DOCTYPE html> <html> <head> <metacharset="UTF-8" /> <title>Hello React</title> <scriptsrc="https://cdn.bootcdn.net/ajax/libs/react/18.3.1/umd/react.development.js"></script> <scriptsrc="https://cdn.bootcdn.net/ajax/libs/react-dom/18.3.1/umd/react-dom.development.js"></script> <!-- Don't use this in production: --> <scriptsrc="https://cdn.bootcdn.net/ajax/libs/babel-standalone/7.28.4/babel.min.js"></script> </head> <body> <divid="root"></div> <scripttype="text/babel"> functionMyApp() { return<h1>Hello, React!</h1>; } const container = document.getElementById('root'); const root = ReactDOM.createRoot(container); root.render(<MyApp />); </script> <!-- Note: this page is a great way to try React but it's not suitable for production. It slowly compiles JSX with Babel in the browser and uses a large development build of React. Read this page for starting a new React project with JSX: https://react.dev/learn/start-a-new-react-project Read this page for adding React with JSX to an existing project: https://react.dev/learn/add-react-to-an-existing-project --> </body> </html>
babel-standalone (v7.28.4) - Standalone build of Babel for use in non-Node.js environments. Similar to the (now deprecacted) babel-browser | BootCDN - Bootstrap 中文网开源项目免费 CDN 加速服务