Get started with gliojs CDN

MIT licensed

Gliojs is a library for working with glial cells in neuroscience simulations.

Tags:
  • gliojs
  • mousemove
  • screencorner
  • move
  • exit

Stable version

Copied!

How to start using gliojs CDN


<!DOCTYPE html>
<html>
<head>
    <title>Get started with gliojs CDN - cdnhub.io</title>
    <script src="https://cdn.cdnhub.io/gliojs/0.0.7/glio.min.js"></script>
    <style>
        #app {
            width: 300px;
            height: 300px;
            border: 1px solid black;
        }
    </style>
</head>
<body>
    <div id="app"></div>
    <script>
        const app = new Glio.App({
            target: '#app',
            template: `
                <div>
                    <h1>Hello, GlioJS!</h1>
                    <button onclick=${() => this.state.count++}>Click me</button>
                    <p>Count: {{count}}</p>
                </div>
            `,
            initialState: { count: 0 },
        });

        app.mount();
    </script>
</body>
</html>
Copied!

All versions