Skip to content

Instantly share code, notes, and snippets.

@cmnstmntmn
Created July 11, 2025 21:35
Show Gist options
  • Save cmnstmntmn/acc3562346b4bffdddad8d0419379852 to your computer and use it in GitHub Desktop.
Save cmnstmntmn/acc3562346b4bffdddad8d0419379852 to your computer and use it in GitHub Desktop.
Flems Playground

React 18 Flems.io playground

<div id="flems"></div>
<script src="https://flems.io/flems.html" type="text/javascript" charset="utf-8"></script>
<script> 
    window.Flems(flems, {
        files: [
          {
            name: "index.html",
            content: "<div id=\"app\"></div>"
          },
        {
            name: 'app.js',
            content: 'const root = ReactDOM.createRoot(app);\nroot.render(\'Hello, world!\')'
        }],
        links: [{
            name: 'react',
            type: 'js',
            url: 'https://unpkg.com/[email protected]/umd/react.development.js'
        },
        {
            name: 'react-dom',
            type: 'js',
            url: 'https://unpkg.com/[email protected]/umd/react-dom.development.js'
        }
        ]
    })
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment