vqua

1.0.32 • Public • Published

← 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 / Документация

Package Sidebar

Install

npm i vqua

Weekly Downloads

2

Version

1.0.32

License

ISC

Unpacked Size

342 kB

Total Files

107

Last publish

Collaborators

  • sterjakov