2.5.2 • Published 1 year ago

sz-react-support v2.5.2

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

sz-react-support

npm install --save sz-react-support

Usage

useAsyncState

useAsyncState is the most powerful feature of this library. It give us the best way to manage async state in react.

function Component() {
  const { state } = useAsyncState({
    loader: async () => await (await fetch("/api/foo/")).json(),
    reloadOnMounted: true,
  });
  return <div>{state}</div>;
}
2.5.2

1 year ago

2.5.0

1 year ago

2.5.1

1 year ago

2.3.0

1 year ago

2.2.0

1 year ago

2.4.0

1 year ago

2.0.3

2 years ago

2.0.2

2 years ago

1.2.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago

1.2.3

2 years ago

0.0.5

4 years ago

0.0.2

4 years ago

0.0.4

4 years ago

0.0.1

4 years ago