1.0.5 • Published 2 years ago

joro v1.0.5

Weekly downloads
3
License
ISC
Repository
github
Last release
2 years ago

Installation

npm install joro --save

Why make this?

  • JSS is over complicated for small projects
  • Its easy to add styles for functional components
  • its tiny, simple functional and i love using it.

Examples

var html = require('nanohtml')
var joro = require('joro');

var styles = new joro();

function HeaderComponent(){
    styles.add("HeaderComponent", `
        h1 { color: hotpink }
    `)
    var el = html`
        <h1>Hello planet</h1>
    `
    document.body.appendChild(el)
}

congratulation its a functional component 🎉

You can add HTML nodes on route change of styles, mount points or anything! 🌈

var page = require('pagejs')
var styles = new joro();

page('/user', () => {
   styles.add("HeaderComponent", `
       .user-profile { color: hotpink }
   `)
   loadTheUI();
})
1.0.5

2 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.0

4 years ago