🌐 reway-react
💨 Reway implementation for ReactJS.
How to use?
-
Install library from npm
yarn add @reway/react
-
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.