Skip to content
This repository was archived by the owner on Sep 7, 2022. It is now read-only.

Commit 77263ff

Browse files
committed
docs: Fix docs grammar, punctuation and add missing curly-brace in code example.
1 parent 048ee8b commit 77263ff

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
@@ -74,7 +74,7 @@ If your web component renders content to itself, make sure you're using Shadow D
7474

7575
### `ref`
7676

77-
If you need access the the underlying DOM element, you can use the standard [`ref` API](https://facebook.github.io/react/docs/more-about-refs.html). Be aware though that since you're dealing with a React Component, you'll need to use [`ReactDOM.findDOMNode`](https://facebook.github.io/react/docs/top-level-api.html#reactdom.finddomnode):
77+
If you need access the the underlying DOM element, you can use the standard [`ref` API](https://facebook.github.io/react/docs/more-about-refs.html). Beware that since you're dealing with a React Component, you'll need to use [`ReactDOM.findDOMNode`](https://facebook.github.io/react/docs/top-level-api.html#reactdom.finddomnode):
7878

7979
```js
8080
import ReactDOM from 'react-dom';
@@ -91,7 +91,7 @@ class MyComponent extends Component {
9191
<ReactComponent
9292
ref={reactComponent => {
9393
this.webComponent = ReactDOM.findDOMNode(reactComponent);
94-
}
94+
}}
9595
/>
9696
);
9797
}

0 commit comments

Comments
 (0)