Skip to content

Commit 4829eb4

Browse files
authored
Update README.md
1 parent 6f072c1 commit 4829eb4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

react/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,13 +380,13 @@
380380
};
381381
 ```
382382

383-
- 尽可能少地使用扩展运算符
383+
+ 尽可能少地使用扩展运算符
384384

385385
  > 为什么? 除非你很想传递一些不必要的属性。对于React v15.6.1和更早的版本,你可以[给DOM传递一些无效的HTML属性](https://doc.react-china.org/blog/2017/09/08/dom-attributes-in-react-16.html)
386386

387387
例外情况:
388388

389-
 - 使用了变量提升的高阶组件
389+
 + 使用了变量提升的高阶组件
390390

391391
```jsx
392392
function HOC(WrappedComponent) {
@@ -403,7 +403,7 @@
403403
}
404404
```
405405

406-
 -  只有在清楚明白扩展对象时才使用扩展运算符。这非常有用尤其是在使用Mocha测试组件的时候。
406+
 + 只有在清楚明白扩展对象时才使用扩展运算符。这非常有用尤其是在使用Mocha测试组件的时候。
407407

408408
 ```jsx
409409
export default function Foo {

0 commit comments

Comments
 (0)