0.1.2-alpha2 • Published 3 years ago

nueva v0.1.2-alpha2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Nueva

npm license

A reactive component based UI library used for making user interfaces.

Usage

  • npm:
npm install nueva
  • yarn:
yarn add nueva
  • cdn:
<script src="https://unpkg.com/nueva@{latest_version}"></script>

Examples

  • With package managers

Use rollup or webpack or parcel for bundling. Example config for rollup with plugin-node-resolve

import { nodeResolve } from '@rollup/plugin-node-resolve';
export default {
  input: 'entry-point.js',
  output: {
    file: 'output-file.js',
    format: 'es'
  },
  plugin: [nodeResolve()] 
}

Then use nueva, for example

import {
  Component,
  createElem,
  render
} from 'nueva';

class App extends Component {
  render() {
    return createElem(
      'div',
      createElem('h1', 'I am H1'),
      createElem('h2', 'I am H2')
    )
  }
}
render(createElem(new App()), document.getElementById('app'))
  • For CDN
class App extends nueva.Component {
  render() {
    return nueva.createElem(
      'div',
      nueva.createElem('h1', 'I am H1'),
      nueva.createElem('h2', 'I am H2')
    )
  }
}
nueva.render(nueva.createElem(new App()), document.getElementById('app'))
0.1.0

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.2-alpha2

3 years ago

0.1.2-alpha

3 years ago

0.0.3

3 years ago

0.0.9-full

3 years ago

0.0.9-full-full

3 years ago

0.0.9

3 years ago

0.0.8

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.2-alpha03

3 years ago

0.0.2-alpha02

3 years ago

0.0.2-alpha01

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago