Skip to content

Commit c9df62c

Browse files
committed
An import path cannot end with a '.tsx' extension. PR705
1 parent bea371f commit c9df62c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

doc/handbook/tutorials/React.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ class Hello extends React.Component<Props, object> {
179179
首先我们在文件头部导入它:
180180

181181
```ts
182-
import Hello from './components/Hello.tsx';
182+
import Hello from './components/Hello';
183183
```
184184

185185
然后修改`render`调用:

0 commit comments

Comments
 (0)