6.0.13 • Published 8 years ago

vcom v6.0.13

Weekly downloads
164
License
-
Repository
github
Last release
8 years ago

vcom

Everything you need to create functional, virtual Preact Components with CSS, HTML, and JS.

Note: if you want to use this standalone, please use dist/vcom.js. Otherwise you'll want to use babel with es2015 or buble to transpile this in your application, either as a global transform or after the build step.

Example

/**
 * Modules
 */

const { HTML, CSS, render } = require('./dist/vcom.js')

/**
 * Styles
 */

const css = CSS(`
  .box {
    text-align: center;
    font-size: 10rem;
    background: blue;
    padding: 50px;
    color: white;
  }
`)

/**
 * HTML
 */

const { div } = HTML

/**
 * Render
 */

const App = (props) => (
  div.class('box')('welcome')
)

/**
 * Render to DOM
 */

render(css(App), document.body)

Installation

npm install vcom

License

MIT

6.0.13

8 years ago

6.0.12

8 years ago

6.0.11

8 years ago

6.0.10

8 years ago

6.0.9

8 years ago

6.0.8

8 years ago

6.0.7

8 years ago

6.0.6

8 years ago

6.0.5

8 years ago

6.0.4

8 years ago

6.0.3

8 years ago

6.0.2

8 years ago

6.0.1

8 years ago

6.0.0

8 years ago

5.0.3

8 years ago

5.0.2

8 years ago

5.0.1

8 years ago

5.0.0

8 years ago

4.0.1

8 years ago

4.0.0

8 years ago

3.0.3

8 years ago

3.0.2

8 years ago

3.0.1

8 years ago

3.0.0

8 years ago

2.0.9

8 years ago

2.0.8

8 years ago

2.0.7

8 years ago

2.0.6

8 years ago

2.0.5

8 years ago

2.0.4

8 years ago

2.0.3

8 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago