README.md

July 25, 2022 ยท View on GitHub

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