Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 1.88 KB

README.md

File metadata and controls

33 lines (23 loc) · 1.88 KB

Sparky

Travis CI codecov Badge Badge FOSSA Status Badge

Sparky is a library that help you to create dynamic UI using Javascript.

You can use it with Typescript (as it was think when it was developed) or you can use plain Javascript if you want too.

The idea behind this library was to create something like React but without some inconvenience of it, like transpiling stuff, so to be able to achieve this goal we render HTML from JS with ES6 Template String.

Browser Compatibility

Sparky supports all browsers that are ES5-compliant (IE8 and below are not supported). But will need polyfills for some odd and older browsers as Internet Explorer 9, 10 or 11. If you can choose your browser, please use Chrome or Opera 😁

Example Usage

    import { Sparky, render } from "sparky-js";

    Sparky.mount(Sparky.component(Main), document.getElementById("app"));

    function Main() {
        return html `<span>Hello World</span>`;
    }

License

FOSSA Status