DEV Community

Cover image for Discovering the awesome Juris framework
ArtyProg
ArtyProg

Posted on

Discovering the awesome Juris framework

Juris is a refreshing Javascript framework. Coming from Mithril, I missed the full control of Javascript, and the ability to code without beeing forced to install tons of Javascript packages, directly in the browser with no complex bundlering.

Apart Mithril, it exists some great librairies in the same spirit:

  1. Hyperapp
  2. Apprun.
  3. DML
  4. SinuousJS
  5. VanJs
  6. uHtml

They are all greats, but Juris push the step further, it is a full framework that can act as a library.

Look at this complete article Juris Web Framework from Juris author.

Here is a minimalistic example Minimalist:

<!DOCTYPE html>
<html>
<head>
  <script src="https://unpkg.com/juris@0.8.0/juris.js"></script>
</head>
<body>
  <div id="app"></div>
  <script>
    const app = new Juris({
      states: { count: 0 },
      layout: [
            { div: { text: () => app.getState('count', 0) } },
            { button: { text: '+', onclick: () => app.setState('count', app.getState('count') + 1) } },
            { button: { text: '-', onclick: () => app.setState('count', app.getState('count') - 1) } }
          ]
      });
    app.render();
  </script>
</body>
</html>  

Enter fullscreen mode Exit fullscreen mode

Top comments (0)