Improve syntax highlighting in readme for JSX (#5331) [skip ci]

This commit is contained in:
Joe Lencioni
2017-02-16 17:36:05 -08:00
committed by Henry Zhu
parent 7e59f86444
commit 69c6d27794

View File

@@ -6,7 +6,7 @@
**In**
```js
```jsx
const Hr = () => {
return <hr className="hr" />;
};
@@ -14,7 +14,7 @@ const Hr = () => {
**Out**
```js
```jsx
const _ref = <hr className="hr" />;
const Hr = () => {
@@ -26,13 +26,13 @@ const Hr = () => {
- **Spread Operator**
```js
```jsx
<div {...foobar} />
```
- **Refs**
```js
```jsx
<div ref="foobar" />
<div ref={node => this.node = node} />
```