Giter Site home page Giter Site logo

stagfoo / joro Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 764 KB

馃暦锔忦煏革笍 Load dom nodes and strings like dependencies with no duplicates

TypeScript 100.00%
javascript jss css css-framework functional-programming frontend template-literals

joro's Introduction

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

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();
})

#Support

ko-fi

joro's People

Contributors

basal-alex avatar dependabot[bot] avatar stagfoo avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    馃枛 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 馃搳馃搱馃帀

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google 鉂わ笍 Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.