Skip to content
This repository has been archived by the owner on Apr 29, 2023. It is now read-only.

Commit

Permalink
fix: update name in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
jeswr committed Feb 19, 2021
1 parent ab6365e commit c5ba78d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# template-typescript
# useAsyncEffect

Convenience function for usage of useEffect with async functions in React.

Expand All @@ -10,7 +10,7 @@ Convenience function for usage of useEffect with async functions in React.

## Why

Convenience and makes code cleaner.
Convenience and makes code cleaner. The following is allowed

```ts
import { useAsyncEffect } from "@jeswr/use-async-effect";
Expand All @@ -23,7 +23,7 @@ function MyComponent() {
}
```

In constrast, async function calls with useEffect in React should be structured as follows:
in constrast, async function calls with useEffect in React should be structured as follows:

```ts
import { useEffect } from "react";
Expand Down

0 comments on commit c5ba78d

Please sign in to comment.