1.13.1 • Published 2 years ago

bruh v1.13.1

Weekly downloads
347
License
MIT
Repository
github
Last release
2 years ago

What's This?

A js library for the web that places your control on a pedestal. It packs flexible SSR (Server-Side HTML Rendering), an awesome DOM interface, and elegant functional reactivity in a tiny code size.

Along with modern build tooling integration (vite), you're one step away from:

  • JSX and MDX (markdown with JSX instead of HTML) for both HTML rendering and DOM element creation
  • Instant HMR (Hot Module Reloading) for both server rendered HTML and client CSS/JS/TS
  • Everything else vite provides - CSS modules, PostCSS, production builds, nearly 0 config, &c.
const Counter = () => {
  // A reactive value
  const count = r(0)
  const increment = () => count.value++

  // Declarative UI without vdom! (and build tools are completely optional)
  const counter =
    <button class="counter" onclick={ increment }>
      Click to increment: { count }
    </button>

  return counter
}

// Yes, all of these are vanilla DOM nodes!
document.body.append(
  <main>
    <h1>Bruh</h1>
    <Counter />
  </main>
)

How do I Get It?

npm init bruh and pick the "vite" template

Where is the documentation?

Right here - but it's not really complete. The best way to use this project is to just read the code, it's pretty short. If you have any questions, even without reading the code first, feel free to ask all of them in the discussions.

1.13.1

2 years ago

1.13.0

2 years ago

1.12.0

2 years ago

1.10.2

3 years ago

1.11.0

3 years ago

1.10.1

3 years ago

1.10.0

3 years ago

1.9.1

3 years ago

1.9.0

3 years ago

1.8.1

3 years ago

1.9.2-types.0

3 years ago

1.8.0

3 years ago

1.6.4

3 years ago

1.7.1

3 years ago

1.7.0

3 years ago

1.6.3

3 years ago

1.6.2

3 years ago

1.6.1

3 years ago

1.6.0

3 years ago

1.5.0

3 years ago

1.4.0

3 years ago

1.3.0

3 years ago

1.2.4

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.18

3 years ago

1.0.17

3 years ago

1.0.16

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.9

3 years ago

1.0.10

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.0.1

7 years ago