slimjs / slim.js

Fast & Robust Front-End Micro-framework based on modern standards

Home Page:http://slimjs.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What is the point of this library?

eldoy opened this issue · comments

You know you can create components using just Javascript functions, right? And that such components are isomorphic and also works server side? With literally zero (0) kb package size or extra libraries needed?

function myComponent(props) {
  return `<my-component>${props.name}</my-component>`
}

Yes, you can also use React, Angular or Vue, or svelte. The point is that this is a stateful web-components library with in-template javascript.

Compared to other common libraries, it is fast and uses less computation power.

SSR is a real good solution if you are willing to pay the price for the servers, depends on the use case.