Skip to content

Commit a1b8d45

Browse files
gaearonyannickcr
authored andcommitted
Add ES6 import example to "jsx in scope" docs
1 parent fc7b02a commit a1b8d45

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

docs/rules/react-in-jsx-scope.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ var Hello = <div>Hello {this.props.name}</div>;
2222

2323
The following patterns are not considered warnings:
2424

25+
```js
26+
import React from 'react';
27+
28+
var Hello = <div>Hello {this.props.name}</div>;
29+
```
30+
2531
```js
2632
var React = require('react');
2733

0 commit comments

Comments
 (0)