-
Notifications
You must be signed in to change notification settings - Fork 16
Getting started
Filatov Dmitry edited this page Nov 2, 2020
·
73 revisions
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.
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.
Just use global vidom
.
var vidom = require('vidom');
import { Component, mount } from 'vidom';
Please pay attention how to switch Vidom to production mode.