Skip to content

Commit

Permalink
[Docs] add more examples
Browse files Browse the repository at this point in the history
  • Loading branch information
sergei-startsev committed Mar 10, 2023
1 parent 1375bd1 commit 5e648c8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/rules/no-deprecated.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ ReactDOMServer.renderToNodeStream(element);
Examples of **correct** code for this rule:

```jsx
// When React < 18
// [1, {"react": "17.0.2"}]
ReactDOM.render(<MyComponent />, root);

// When [1, {"react": "0.13.0"}]
ReactDOM.findDOMNode(this.refs.foo);

Expand Down

0 comments on commit 5e648c8

Please sign in to comment.