Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/stagfoo/joro

πŸ•·οΈπŸ•ΈοΈ Load dom nodes and strings like dependencies with no duplicates
https://github.com/stagfoo/joro

css css-framework frontend functional-programming javascript jss template-literals

Last synced: 18 days ago
JSON representation

πŸ•·οΈπŸ•ΈοΈ Load dom nodes and strings like dependencies with no duplicates

Awesome Lists containing this project

README

        



Load dom nodes and strings like dependencies with no duplicates








---

# 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

```js

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

var styles = new joro();

function HeaderComponent(){
styles.add("HeaderComponent", `
h1 { color: hotpink }
`)
var el = html`

Hello planet


`
document.body.appendChild(el)
}
```
congratulation its a functional component πŸŽ‰

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

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

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

#Support

[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/H2H616GHW)