@reway/react

0.1.3 • Public • Published

🌐 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.

Readme

Keywords

none

Package Sidebar

Install

npm i @reway/react

Weekly Downloads

0

Version

0.1.3

License

MIT

Unpacked Size

13.9 kB

Total Files

36

Last publish

Collaborators

  • jassix