Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects
example.js 676 B
Newer Older
  • Learn to ignore specific revisions
  • peter_rabbit's avatar
    peter_rabbit committed
    "use strict";
    
    class Example {
        constructor(args) {
            Object.assign(this, args);
        }
    
        render() {
            return {
                tag: "main",
                contents: [
                    {
                        tag: "h1",
                        contents: "Example",
                    },
                    {
                        tag: "a",
                        href: "/public/",
                        contents: "Home",
                    },
                    {tag:"br"},
                    {
                        tag: "a",
                        href: "../example2/",
                        contents: "Example page 2",
                    },
                ],
            };
        }
    }
    
    module.exports = Example;