0.1.3 • Published 12 months ago

@reway/react v0.1.3

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

🌐 reway-react

"Buy Me A Coffee"

💨 Reway implementation for ReactJS.

How to use?

  1. Install library from npm

    yarn add @reway/react
  2. Write a simple case:

    // store/user.ts
    
    import { atom } from '@reway/core';
    
    export const name = atom<string>("Jack");
    
    // components/MyName.tsx
    
    import React from 'react';
    import { useAtom } from "@reway/react";
    import { name } from '../store/user';
    
    export const MyName = () => {
      const name = useAtom(name)
    
      return (
        <h1>Hello my name is {name}</h1>
      )  
    }

Contribution

The library needs your activity! We welcome any help.

0.1.3

12 months ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago