diff --git a/README.md b/README.md index 5c1019f..3f26075 100644 --- a/README.md +++ b/README.md @@ -1,28 +1,28 @@ -
-

use-suspense-hook

+
+

use-suspense-hooks

-
-Released package version -License: MIT -CI status +
+Released package version +License: MIT +CI status

-
+
Hooks that allow synchronous execution of Async functions via React.Suspension
## 📦 Install ```shell -$ npm install use-suspense-hook +$ npm install use-suspense-hooks ``` ```shell -$ yarn add use-suspense-hook +$ yarn add use-suspense-hooks ``` ## 📔 Usage @@ -54,7 +54,7 @@ function MyComponent() { ## 🤝 Contributing -1. Fork it ( ) +1. Fork it ( ) 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) diff --git a/example/package.json b/example/package.json index 56896f1..d3e6eb1 100644 --- a/example/package.json +++ b/example/package.json @@ -14,7 +14,7 @@ "react-dom": "^18.2.0", "react-scripts": "5.0.1", "typescript": "^4.8.2", - "use-suspense-hook": "../artifacts/use-suspense-hook-1.0.0.tgz" + "use-suspense-hooks": "../artifacts/use-suspense-hooks-1.0.0.tgz" }, "scripts": { "start": "react-scripts start", diff --git a/example/src/ListItem.tsx b/example/src/ListItem.tsx index 2544066..36f43ba 100644 --- a/example/src/ListItem.tsx +++ b/example/src/ListItem.tsx @@ -1,6 +1,6 @@ // package could be installed by `yarn artifact` in project root import React from 'react' -import {useSuspenseState} from "use-suspense-hook"; +import {useSuspenseState} from "use-suspense-hooks"; interface Props { index: number diff --git a/package.json b/package.json index aa9cda9..77a4d99 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "use-suspense-hook", - "version": "1.0.0", + "name": "use-suspense-hooks", + "version": "0.1.0", "description": "Hooks that allow synchronous execution of Async functions via React.Suspension", "author": "sho", "main": "lib/cjs/index.js", @@ -24,7 +24,7 @@ "lint:prettier": "prettier '**/*.{json,yml}' --check", "test": "run-p 'typecheck:*' 'lint:*' 'test:*'", "test:jest": "jest -c config/jest.config.ts", - "artifact": "yarn pack --filename artifacts/use-suspense-hook-$npm_package_version.tgz", + "artifact": "yarn pack --filename artifacts/use-suspense-hooks-$npm_package_version.tgz", "clean": "rimraf lib 'artifacts/*.tgz'", "prepack": "run-s clean build" }, @@ -66,9 +66,9 @@ "typescript", "type" ], - "bugs": "https://github.com/sskmy1024y/use-suspense-hook/issues", + "bugs": "https://github.com/sskmy1024y/use-suspense-hooks/issues", "repository": { "type": "git", - "url": "https://github.com/sskmy1024y/use-suspense-hook.git" + "url": "https://github.com/sskmy1024y/use-suspense-hooks.git" } }