Fix typo in TypeScript 3.1 release notes PR996
This commit is contained in:
parent
b3bcdebdb7
commit
363716af47
@ -40,7 +40,7 @@ readImage.sync = (path: string) => {
|
||||
此外,这种属性声明的方式允许我们表达一些常见的模式,例如React无状态函数型组件(SFCs)里的`defaultProps`和`propTpes` 。
|
||||
|
||||
```ts
|
||||
export const FooComponent => ({ name }) => (
|
||||
export const FooComponent = ({ name }) => (
|
||||
<div>Hello! I am {name}</div>
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user