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:
- Hyperapp
- Apprun.
- DML
- SinuousJS
- VanJs
- 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>
Top comments (0)