Skip to content

Commit 3af7487

Browse files
committed
Update README
1 parent 111423a commit 3af7487

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ open coverage/ dir
248248

249249
## React 16 Note
250250

251-
If you are using React 16, you won't access popup element's ref in parent component's componentDidMount, which means following code won't work.
251+
After React 16, you won't access popup element's ref in parent component's componentDidMount, which means following code won't work.
252252

253253
```javascript
254254
class App extends React.Component {
@@ -274,7 +274,7 @@ Consider wrap your popup element to a separate component:
274274
```javascript
275275
class InputPopup extends React.Component {
276276
componentDidMount() {
277-
this.onMount();
277+
this.props.onMount();
278278
}
279279

280280
render() {

0 commit comments

Comments
 (0)