Skip to content

Commit d759c52

Browse files
author
Andy Chen
committed
update name
1 parent 8ba2c43 commit d759c52

File tree

4 files changed

+19
-16
lines changed

4 files changed

+19
-16
lines changed

.circleci/config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ jobs:
55
- image: circleci/node:8.10
66
environment:
77
- NODE_ENV: test
8-
working_directory: ~/react-use-form
8+
working_directory: ~/use-form-react
99
steps:
1010
- checkout
1111
- restore_cache:
12-
key: react-use-form-yarn-{{ checksum "yarn.lock" }}
12+
key: use-form-react-yarn-{{ checksum "yarn.lock" }}
1313
- run:
1414
name: Yarn Install
1515
command: |
1616
yarn install
1717
- save_cache:
18-
key: react-use-form-yarn-{{ checksum "yarn.lock" }}
18+
key: use-form-react-yarn-{{ checksum "yarn.lock" }}
1919
paths:
20-
- ~/react-use-form/node_modules
20+
- ~/use-form-react/node_modules
2121
- run:
2222
name: Run JS Tests
2323
command: yarn test

README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,18 @@
44
<a href="https://github.com/amazingandyyy/use-form/pulls">
55
<img src="https://camo.githubusercontent.com/d4e0f63e9613ee474a7dfdc23c240b9795712c96/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5052732d77656c636f6d652d627269676874677265656e2e737667" />
66
</a>
7-
<a href="https://circleci.com/gh/amazingandyyy/react-use-form">
8-
<img src="https://circleci.com/gh/amazingandyyy/react-use-form.svg?style=svg" />
7+
<a href="https://circleci.com/gh/amazingandyyy/use-form-react">
8+
<img src="https://circleci.com/gh/amazingandyyy/use-form-react.svg?style=svg" />
9+
</a>
10+
<a href="https://www.npmjs.com/package/use-form-react">
11+
npm package
912
</a>
1013
</p>
1114

1215
## Installation
1316

1417
```shell
15-
npm i --save react-use-form
18+
npm i --save use-form-react
1619
```
1720

1821
## Have a good to use form in 10 seconds
@@ -23,10 +26,10 @@ npm i --save react-use-form
2326

2427
### Basic Usage
2528

26-
check [basic example](https://github.com/amazingandyyy/react-use-form/blob/master/examples/basic/index.js)
29+
check [basic example](https://github.com/amazingandyyy/use-form-react/blob/master/examples/basic/index.js)
2730

2831
```jsx
29-
import useFetch from 'react-use-form'
32+
import useFetch from 'use-form-react'
3033

3134
const Form = () => {
3235
const { onSubmit, onChange, inputs } = useForm('sampleForm', {
@@ -48,10 +51,10 @@ const Form = () => {
4851

4952
### Advance Usage
5053

51-
check [advance example](https://github.com/amazingandyyy/react-use-form/blob/master/examples/advance/index.js)
54+
check [advance example](https://github.com/amazingandyyy/use-form-react/blob/master/examples/advance/index.js)
5255

5356
```jsx
54-
import useFetch from 'react-use-form'
57+
import useFetch from 'use-form-react'
5558

5659
const SignUp = () => {
5760
const options = {

examples/advance/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const Form = () => {
2222
<div>
2323
{error&&<div>error: {error}</div>}
2424
<form onSubmit={onSubmit}>
25-
<h3>Advance Form Demo (<a href='https://github.com/amazingandyyy/react-use-form' target='_blank'>react-use-form</a>)</h3>
25+
<h3>Advance Form Demo (<a href='https://github.com/amazingandyyy/use-form-react' target='_blank'>use-form-react</a>)</h3>
2626
<input
2727
type='email'
2828
name="email"

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "react-use-form",
3-
"version": "0.0.1",
2+
"name": "use-form-react",
3+
"version": "0.0.2",
44
"description": "The most unopinionated react from hook.",
55
"main": "dist/index.js",
66
"keywords": [
@@ -13,7 +13,7 @@
1313
],
1414
"repository": {
1515
"type": "git",
16-
"url": "https://github.com/amazingandyyy/react-use-form.git"
16+
"url": "https://github.com/amazingandyyy/use-form-react.git"
1717
},
1818
"peerDependencies": {
1919
"react": "^16.8.0"
@@ -35,7 +35,7 @@
3535
"dev:advance": "parcel examples/advance/index.html --open",
3636
"build": "parcel build --target node ./src/*",
3737
"test": "jest",
38-
"publish": "yarn build && yarn publish"
38+
"publish": "npm run build && npm publish"
3939
},
4040
"files": [
4141
"dist"

0 commit comments

Comments
 (0)