Skip to content

Commit

Permalink
Merge branch 'main' of github.com:deep-foundation/react-use-are-packa…
Browse files Browse the repository at this point in the history
…ges-installed
  • Loading branch information
FreePhoenix888 committed Jun 3, 2023
2 parents 30f5119 + c8c9a52 commit 827e524
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,12 @@

# Goal

This package provides a React hook that checks whether deep packages are installed.
Provide a React hook that checks whether deep packages are installed.

# How to use?

```ts
const { isPackageInstalled, loading, error } = useIsPackageInstalled({
packageNames: ['@deep-foundation/deep-memo', '@deep-foundation/payments'],
shouldIgnoreResultWhenLoading: true,
onError: (error) => {
console.error(error.message);
},
});
```

0 comments on commit 827e524

Please sign in to comment.