Installation

Markup is a plug-and-play package that does not need to be built. There is no need to any additional setup or requirements to get started. Simply add it to your project and start writing your code.

Via CDN

This method is the quickest loading option and can be placed in the head tag of the document.

html
1<script src="https://unpkg.com/@beforesemicolon/markup/dist/client.js" />

You may also specify a specific version you want.

html
1<script src="https://unpkg.com/@beforesemicolon/markup@1.0.0/dist/client.js" />

You can use various CDN providers like unpkg, jsDelivr.

html
1<script src="https://unpkg.com/@beforesemicolon/markup/dist/client.js" />2<script src="https://cdn.jsdelivr.net/npm/@beforesemicolon/markup/dist/client.js" />

The client CDN link will create a global BFS.MARKUP variable you can access for all the internal functions.

javascript
1const { html, state, effect } = BFS.MARKUP

Via npm

This package is also available via npm which will allow you to use it in server-side JavaScript environments.

1npm install @beforesemicolon/markup
javascript
1import { html, state, effect } from '@beforesemicolon/markup'

Via yarn

1yarn add @beforesemicolon/markup

Typescript

This package was built using typescript. You don't need to install a separate "types" package for it.

edit this doc