Skip to content

Commit 2105826

Browse files
author
scottrippey
committed
feature(useEvent): rename project to something unique
1 parent ade797f commit 2105826

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# react-useevent
1+
# react-use-event-hook
22
Same as React's `useCallback`, but returns a stable reference.
33

44
This library is a user-land implementation of the `useEvent` hook, [proposed in this RFC](https://github.com/reactjs/rfcs/blob/useevent/text/0000-useevent.md).
55

66
# Installation
77

88
```sh
9-
npm install react-useevent
9+
npm install react-use-event-hook
1010
```
1111

1212
# Usage
@@ -15,7 +15,7 @@ npm install react-useevent
1515
You can wrap any event handler into `useEvent`.
1616

1717
```js
18-
import useEvent from 'react-useevent';
18+
import useEvent from 'react-use-event-hook';
1919

2020
function Chat() {
2121
const [text, setText] = useState('');

package-lock.json

+4-4
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "react-useevent",
3-
"version": "0.9.0",
2+
"name": "react-use-event-hook",
3+
"version": "0.7.0",
44
"description": "Same as React's `useCallback`, but returns a stable reference.",
55
"main": "dist/useEvent.js",
66
"files": [
@@ -19,7 +19,7 @@
1919
},
2020
"repository": {
2121
"type": "git",
22-
"url": "git+https://github.com/scottrippey/react-useevent.git"
22+
"url": "git+https://github.com/scottrippey/react-use-event-hook.git"
2323
},
2424
"keywords": [
2525
"react",
@@ -32,9 +32,9 @@
3232
"author": "Scott Rippey",
3333
"license": "MIT",
3434
"bugs": {
35-
"url": "https://github.com/scottrippey/react-useevent/issues"
35+
"url": "https://github.com/scottrippey/react-use-event-hook/issues"
3636
},
37-
"homepage": "https://github.com/scottrippey/react-useevent#readme",
37+
"homepage": "https://github.com/scottrippey/react-use-event-hook#readme",
3838
"dependencies": {},
3939
"peerDependencies": {
4040
"react": ">=16.8.0"

0 commit comments

Comments
 (0)