Skip to content
Filatov Dmitry edited this page Nov 2, 2020 · 73 revisions

Installation

The easiest way to get Vidom is to include pre-built bundle from CDN:

<script src="https://unpkg.com/[email protected]/dist/vidom.js"></script>

It injects vidom global into your environment.

npm

If you're using npm, you can install Vidom via:

npm install vidom

It's highly recommended to install corresponding babel plugin to use jsx instead of raw api.

Usage

Pre-built bundle

Just use global vidom.

In CommonJs

var vidom = require('vidom');

In ES2015

import { Component, mount } from 'vidom';

Production mode

Please pay attention how to switch Vidom to production mode.