Skip to content

Commit 8693f30

Browse files
committed
docs: minor fixes
1 parent ea6c176 commit 8693f30

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

website/pages/docs/rules/no-access-state-in-setstate.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ import React from "react";
6464

6565
interface MyComponentProps {}
6666

67-
interface MyComponentStateState {
67+
interface MyComponentState {
6868
foo: number;
6969
}
7070

website/pages/docs/rules/no-direct-mutation-state.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ import React from "react";
4040

4141
interface MyComponentProps {}
4242

43-
interface MyComponentStateState {
43+
interface MyComponentState {
4444
foo: string;
4545
}
4646

@@ -72,7 +72,7 @@ import React from "react";
7272

7373
interface MyComponentProps {}
7474

75-
interface MyComponentStateState {
75+
interface MyComponentState {
7676
foo: string;
7777
}
7878

website/pages/docs/rules/no-prop-types.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ MyComponent.propTypes = {
6666
```tsx
6767
import React from "react";
6868

69-
function MyComponentComponent(props) {
69+
function MyComponent(props) {
7070
return <div>{props.name}</div>;
7171
}
7272

@@ -98,7 +98,7 @@ interface MyComponentProps {
9898
name: string;
9999
}
100100

101-
function MyComponentComponent({ name }: MyComponentProps) {
101+
function MyComponent({ name }: MyComponentProps) {
102102
return <div>{name}</div>;
103103
}
104104
```

website/pages/docs/rules/no-set-state-in-component-did-mount.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import React from "react";
3838

3939
interface MyComponentProps {}
4040

41-
interface MyComponentStateState {
41+
interface MyComponentState {
4242
name: string;
4343
}
4444

website/pages/docs/rules/no-set-state-in-component-did-update.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import React from "react";
3838

3939
interface MyComponentProps {}
4040

41-
interface MyComponentStateState {
41+
interface MyComponentState {
4242
name: string;
4343
}
4444

website/pages/docs/rules/no-set-state-in-component-will-update.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ import React from "react";
3838

3939
interface MyComponentProps {}
4040

41-
interface MyComponentStateState {
41+
interface MyComponentState {
4242
name: string;
4343
}
4444

0 commit comments

Comments
 (0)