Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

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

install

npm i vqua

Downloadsweekly downloads

3

version

1.0.32

license

ISC

last publish

collaborators

  • avatar
Report a vulnerability