Appearance
@bagatell/core
On this page you find the documentation for the npm package @bagatell/core
(link to npm).
Introduction
The npm package @bagatell/core
implements different classes you can use when building your own Bagatell app. For more info, checkout the Documentation.
Quick start
npm install @bagatell/core
- js
import { App, Page, Text, } from '@bagatell/core' export function createApp({a, p}){ class MyApp extends App{ createStartPage(){ return new StartPage() } } class StartPage extends Page{ createGui(){ return Text(`Hello, world`) } } return MyApp }
- Use @bagatell/web-components to display your Bagatell app on an HTML webpage