Skip to content

Commit 2714f26

Browse files
authored
Merge pull request #65 from tpetrina/patch-2
Little more consistency between examples
2 parents 064d10f + 922b564 commit 2714f26

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ class App extends React.Component<{
293293
For Typescript 3.0+, type inference [should work](https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-0.html), although [some edge cases are still problematic](https://github.com/sw-yx/react-typescript-cheatsheet/issues/61). Just type your props like normal.
294294

295295
```tsx
296-
export interface Props {
296+
export type Props = {
297297
name: string;
298298
}
299299

0 commit comments

Comments
 (0)