whatsup / whatsup

A frontend framework for chillout-mode development πŸ₯€ JSX components on generators*, fast mobx-like state management and exclusive cssx style system

Home Page:https://whatsup.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What is it?

Whatsup is a modern frontend framework with own reactivity system and JSX components based on pure functions and generators.

Features

  • πŸŽ‰ easy to use: simple api, just write code
  • πŸš€ own reactivity system with high performance
  • 🌈 cool styling system based on css modules
  • 🚦 built-in router with intuitive api
  • β›“ glitch free, autotracking and updating of dependencies
  • πŸ₯— written in typescript, type support out of the box
  • πŸ—œ small size: ~7kB gzipped (state + jsx + cssx)

Example

import { observable } from 'whatsup'
import { render } from 'whatsup/jsx'

function* App() {
    const counter = observable(0)
    const increment = () => counter(counter() + 1)

    while (true) {
        yield (
            <div>
                <p>You click {counter()} times</p>
                <button onClick={increment}>Click me</button>
            </div>
        )
    }
}

render(<App />)

Documentation

You can find the Whatsup documentation on the website.

Check out the Intro page for a quick overview.

The documentation is divided into several sections:

Examples

License

MIT (c) 2020-present, @iminside

About

A frontend framework for chillout-mode development πŸ₯€ JSX components on generators*, fast mobx-like state management and exclusive cssx style system

https://whatsup.js.org

License:MIT License


Languages

Language:TypeScript 93.4%Language:JavaScript 5.8%Language:CSS 0.8%Language:SCSS 0.1%