Skip to content

Commit d74a8dd

Browse files
author
Mohsen Azimi
committed
Update readme: dynamic state is not optional becasue react state is always optional
1 parent 08885f1 commit d74a8dd

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
@@ -44,7 +44,7 @@ type MyComponentProps = {
4444
type MyComponentState = {
4545
foo: number;
4646
bar: string;
47-
baz: number | undefined;
47+
baz: number;
4848
}
4949

5050
class MyComponent extends React.Component<MyComponentProps, MyComponentState> {

0 commit comments

Comments
 (0)