2.5.2 • Published 2 months ago

sz-react-support v2.5.2

Weekly downloads
-
License
MIT
Repository
-
Last release
2 months 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

2 months ago

2.5.0

2 months ago

2.5.1

2 months ago

2.3.0

2 months ago

2.2.0

2 months ago

2.4.0

2 months ago

2.0.3

11 months ago

2.0.2

11 months ago

1.2.0

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.0

1 year ago

1.2.3

1 year ago

0.0.5

3 years ago

0.0.2

3 years ago

0.0.4

3 years ago

0.0.1

3 years ago