0.3.17 ā€¢ Published 5 months ago

@rhjs/core v0.3.17

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
5 months ago

šŸ§© rh.js

language

šŸ§© lightweight & powerful framework

FEATURES:

  • Packed main.js only <~ 13kb (gzip)
  • Not extras syntax, all in js.
  • Less virtual dom, always real dom.
  • Hooks without any restrictions.
  • Extremely high performance, most renders do not require diff.
  • Develop applications in any style, react vue solid even elm style.
  • Ubiquitous responsiveness, even across clients and across endpoints (WIP)

Packages

PackageVersionSizeDescription
@rhjs/coreCore Versionsizecore code.
@rhjs/hooksTag Versionsizehooks, such as createEffect createState ...
@rhjs/builtinBuiltin Versionsizebuiltin function, such like For / lazy / Portal.
@rhjs/tagTag VersionsizeSome convenient-to-use template string tools, such like html / raw / text.
@rhjs/hyperTag VersionsizeBuilding components functionally.
@rhjs/atomic-cssversionsizetailwindcss runtime.
@rhjs/queryšŸš§šŸš§Porting react-query.

Table of Contents

Quick Start

<script type="importmap">
{
  "imports": {
    "@rhjs/core": "https://unpkg.com/@rhjs/core@latest/dist/main.module.mjs",
    "@rhjs/hooks": "https://unpkg.com/@rhjs/hooks@latest/dist/main.module.mjs",
    "@rhjs/builtin": "https://unpkg.com/@rhjs/builtin@latest/dist/main.module.mjs",
    "@rhjs/tag": "https://unpkg.com/@rhjs/tag@latest/dist/main.module.mjs"
  }
}
</script>
<div id="app"></div>
<script type="module">
  import { mount } from "@rhjs/core";
  import { createState } from "@rhjs/hooks";
  import { html } from "@rhjs/tag";

  const [count, setCount] = createState(0);

  mount(
    "#app",
    html`
      <h1>Hello world, @rhjs šŸŽ‰</h1>
      <button class="button-85" onclick=${() => setCount((c) => c + 1)}>
        count: ${count}
      </button>
    `
  );
</script>

online in codesandbox

TRY IT

Maintainers

@zhzluke96

Contributing

Feel free to dive in! Open an issue or submit PRs.

LICENSE

Code is licensed under the Apache License 2.0.

0.3.17

5 months ago

0.3.16

5 months ago

0.3.9

5 months ago

0.3.15

5 months ago

0.3.14

5 months ago

0.3.13

5 months ago

0.3.12

5 months ago

0.3.11

5 months ago

0.3.10

5 months ago

0.3.8

5 months ago

0.3.6

5 months ago

0.3.7

5 months ago

0.3.0

5 months ago

0.3.5

5 months ago

0.3.2

5 months ago

0.3.1

5 months ago

0.3.4

5 months ago

0.2.11

5 months ago

0.2.10

5 months ago

0.2.7

10 months ago

0.2.6

10 months ago

0.2.9

6 months ago

0.2.8

7 months ago

0.2.3

11 months ago

0.2.5

11 months ago

0.2.4

11 months ago

0.2.2

11 months ago

0.2.1

11 months ago