@cqrsfk/sync-react
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

sync-react

data synchronize for react

Use

import {sync}  from "@cqrsfk/sync-react";

class UI extends React.Component{
    async componentWillMount() {
      this.userProto = await domain.create<User>("User", []);
      this.ud = sync(this, "user");
      const user = this.userProto.$sync(this.ud);
      this.setState({
        user
      });
    }
}

/@cqrsfk/sync-react/

    Package Sidebar

    Install

    npm i @cqrsfk/sync-react

    Weekly Downloads

    0

    Version

    1.0.0

    License

    ISC

    Unpacked Size

    59.1 kB

    Total Files

    15

    Last publish

    Collaborators

    • leozale