diff --git a/doc/release-notes/TypeScript 3.1.md b/doc/release-notes/TypeScript 3.1.md index 1f57fc2..6e65e2c 100644 --- a/doc/release-notes/TypeScript 3.1.md +++ b/doc/release-notes/TypeScript 3.1.md @@ -40,7 +40,7 @@ readImage.sync = (path: string) => { 此外,这种属性声明的方式允许我们表达一些常见的模式,例如React无状态函数型组件(SFCs)里的`defaultProps`和`propTpes` 。 ```ts -export const FooComponent => ({ name }) => ( +export const FooComponent = ({ name }) => (
Hello! I am {name}
);