Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including vqua with all npm packages installed. Try it out:

var vqua = require("vqua")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

vqua v1.0.32

Virtual DOM library with focus on server prerender.

← back

Vqua - virtual dom library

Vqua is a JavaScript library for creating web interfaces, oriented on creation isomorphic / universal applications. Or speaking in a simpler language then your site will be better indexed by search engines.

Example counter:


  const { Component, html } = require('vqua')

  class Counter extends Component {

    constructor(props, context) {

      super(props, context)

      this.state = { counter: 0 }

    }

    handleClick() {

      this.setState({ counter: this.state.counter + 1 })

    }

    render() {

      const { a, div } = html

      return (
        div({},
          this.state.counter,
          a({ onClick: () => { this.handleClick() } },
            'Click me!'
          )
        )
      )

    }

  }

Documentation / Документация

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free