GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - yone1130/render-js: A TypeScript library for rendering HTML elements

BranchesTags
Open more actions menu

Latest commit

 

History

221 Commits
221 Commits

Folders and files

NameName
Last commit message
Last commit date
.vscode
.vscode
 
 
docs
docs
 
 
examples
examples
 
 
src
src
 
 
tests
tests
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
README_JP.md
README_JP.md
 
 
package.json
package.json
 
 
pnpm-lock.yaml
pnpm-lock.yaml
 
 
tsconfig.json
tsconfig.json
 
 

Repository files navigation

Render.js

Ask DeepWiki

日本語で読む >

Overview

Render.js is a TypeScript / JavaScript library for rendering HTML elements.

Usage

1. Install or Import

Install as a package (TypeScript):

npm i yone1130/render-js

or direct importing from CDN (JavaScript):

import { Render, RenderApp, RenderComponent } from "https://cdn.yoneyo.com/scripts/[email protected]/dist/render.js";

2. Use

Example code (with App Creator):

class Greeting extends RenderComponent {
    constructor() {
        super();
        this.title = "Render.js";
        this.message = "Hello World";
    }

    build() {
        const { $h1, $p } = this.render;

        return super.build({
            children: [
                $h1({
                    id: "title",
                    textContent: this.title,
                }),
                $p({
                    id: "message",
                    textContent: this.message,
                }),
            ]
        });
    }
}

class MyApp extends RenderApp {
    constructor() { super(); }

    build() {
        return super.build({
            children: [
                new Greeting(),
            ]
        });
    }
}

const render = new Render();

render.runApp({
    root: document.body,
    app: new MyApp(),
});

or just rendering (with Builder):

const render = new Render();
const root = document.getElementById("root");

const app = () => {
    const { $div, $h1, $p } = render;
    const title = "Render.js";
    const message = "Hello World";

    return [
        $div({
            id: "app",
            children: [
                $h1({
                    id: "title",
                    textContent: title,
                }),
                $p({
                    id: "message",
                    textContent: message,
                }),
            ],
        }),
    ];
};

render.build({
    target: root,
    children: app(),
});

Example codes

  • Example codes: examples/.

Resources

  • Documents: https://render-js.yoneyo.com/ .
  • Demos: https://render-js.yoneyo.com/examples/ .

Development

1. Install Packages

pnpm i

2. Build

Compile to JavaScript.

pnpm run build

Emitted JavaScript files will be output to the dist/ directory.

License

Licensed under the MIT License.

Copyright © 2025 よね/Yone

About

A TypeScript library for rendering HTML elements

render-js.yoneyo.com/

Topics

domhtmljavascripttypescriptweb-libraryyone

Resources

Readme
MIT license
Activity

Stars

2 stars

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.