Skip to content
This repository was archived by the owner on May 12, 2021. It is now read-only.

Commit 1ff64fc

Browse files
committed
Update readme
1 parent 7e84ab4 commit 1ff64fc

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ yarn add react-placeholder-support
1616
## Usage
1717

1818
```js
19-
Input = require('react-placeholder-support')('input')
20-
Textarea = require('react-placeholder-support')('textarea')
19+
import ReactPlaceholderSupport from 'react-placeholder-support';
20+
21+
Input = ReactPlaceholderSupport('input')
22+
Textarea = ReactPlaceholderSupport('textarea')
2123
```
2224

2325
```html

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-placeholder-support",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Input and Textarea React placeholder support",
55
"main": "./dist/react-placeholder-support.js",
66
"scripts": {

0 commit comments

Comments
 (0)