Skip to content

Commit e71918b

Browse files
committed
Update README
1 parent 92c6e31 commit e71918b

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111
# react-signature-pad-wrapper
1212
A React wrapper for [signature pad](https://github.com/szimek/signature_pad).
1313

14-
There are some other React packages that are based off the original *signature_pad* plugin (e.g. [react-signature-pad](https://github.com/blackjk3/react-signature-pad), [react-signature-canvas](https://github.com/agilgur5/react-signature-canvas)). This package is different in the sense that it relies on *signature_pad* as a dependency rather than an implementation that is based off of it (like the aforementioned packages).
15-
1614
## Installation
1715
This package is available through npm:
1816
```
@@ -40,7 +38,7 @@ or they can be set during runtime:
4038
```javascript
4139
...
4240
render() {
43-
return <SignaturePad ref={ref => this.signaturePad = ref} />;
41+
return <SignaturePad ref={this.signaturePadRef} />;
4442
}
4543
...
4644
```
@@ -80,7 +78,7 @@ If you'd like to keep what is currently drawn on the canvas you can pass a `redr
8078
```javascript
8179
...
8280
render() {
83-
return <SignaturePad redrawOnResize={true} />;
81+
return <SignaturePad redrawOnResize />;
8482
}
8583
...
8684
```

0 commit comments

Comments
 (0)