vueactive

0.15.0 • Public • Published

vueactive

npm version gzip size

React bindings for @vue/reactivity.

Installation

yarn add vueactive @vue/runtime-core

Examples

Counter

import React, { useState } from "react";
import { ref } from "@vue/reactivity";
import { component, useConstant } from "vueactive";

const { Fragment } = component;

const Counter = () => {
  return useConstant(() => {
    const count$ = ref(0);

    return (
      <>
        <button onClick={() => count$.value--}>-</button>
        <Fragment>{count$}</Fragment>
        <button onClick={() => count$.value++}>+</button>
      </>
    );
  });
};

export default Counter;

TodoMVC

Readme

Keywords

none

Package Sidebar

Install

npm i vueactive

Weekly Downloads

1

Version

0.15.0

License

MIT

Unpacked Size

89.1 kB

Total Files

11

Last publish

Collaborators

  • jas-chen