0.26.4 • Published 11 months ago

orve v0.26.4

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

Library for creating reactive SPA applications. Trying to take the best from react and vue

npm i orve

Webpack project

Vite project

CLI - in order to make it easier to install the template

Documentation The documentation is outdated. preparing a new version OR Site (written with orve) The documentation is outdated. preparing a new version

If you contribute something to the project, I will be very grateful to you.))

Mini example

this library will help you out of this

function() {
    return {
        tag: "div",
        props: {
            id: "key",
            class: "comp"
        },
        child: [
            {
                tag: "p",
                child: "This is ORVE"
            },
            "<p>object-reactive library</p>"
        ]
    }
}

or this (jsx)

function() {
    return (
        <div id="key" class="comp">
            <p>This is ORVE</p>
            <p>object-reactive library</p>
        </div>
    )
}

do this

<div id="key" class="comp">
    <p>This is ORVE</p>
    <p>object-reactive library</p>
</div>

that's not all, to learn more, read the documentation

usage

import { ref, createApp } from "orve";

function Component() {
  const r = ref(0);

  return {
    tag: "div",
    child: [
      {
        tag: "p",
        child: r
      },
      {
        tag: "button",
        props: {
          "@click": () => { r.value += 1 }
        },
        child: "Click"
      }
    ]
  }
}

createApp(Component).mount("#app");

OR

import orve , { ref, createApp } from "orve";

function Component() {
  const r = ref(0);

  return (
        <div>
            <p>{r}</p>
            <button
                onClick={() => { r.value += 1; }}
            >
                Click
            </button>
        </div>
    )
}

createApp(Component).mount("#app");
0.26.3

11 months ago

0.26.2

11 months ago

0.26.1

11 months ago

0.26.0

11 months ago

0.25.1

11 months ago

0.25.0

11 months ago

0.24.1

11 months ago

0.24.0

11 months ago

0.26.4

11 months ago

0.22.7

1 year ago

0.22.6

1 year ago

0.22.5

1 year ago

0.21.6

1 year ago

0.21.5

1 year ago

0.22.3

1 year ago

0.22.2

1 year ago

0.21.3

1 year ago

0.23.0

1 year ago

0.22.1

1 year ago

0.22.9

1 year ago

0.22.8

1 year ago

0.10.7

1 year ago

0.10.6

1 year ago

0.10.5

1 year ago

0.10.4

1 year ago

0.9.1

1 year ago

0.9.0

1 year ago

0.6.4

2 years ago

0.6.3

2 years ago

0.6.2

2 years ago

0.6.0

2 years ago

0.5.21

2 years ago

0.5.2

2 years ago

0.5.1

2 years ago