Getting Started
Welcome to Regor! This guide will walk you through the essential steps to start building HTML5-based applications using the Regor UI framework. Whether you’re new to Regor or an experienced developer, this guide will help you get up and running quickly.
Installation
Section titled “Installation”Before you can begin using Regor, you need to add it to your project. You can install Regor using npm or yarn.
Using yarn
yarn add regor
Using npm
npm install regor
Import into Typescript file
Section titled “Import into Typescript file”import { createApp, ref } from 'regor'
createApp({ message: ref('Hello world!'),})
Using the global build
Section titled “Using the global build”<script src="https://unpkg.com/regor/dist/regor.es2022.iife.prod.js"></script>
Using the module script
Section titled “Using the module script”<div id="app">{{ message }}</div><script type="module"> import { createApp, ref, } from 'https://unpkg.com/regor/dist/regor.es2022.esm.prod.js' createApp({ message: ref('Hello world!'), })</script>