mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-17 07:20:23 +00:00
React-Burger-Menu: Compatibility with older versions of React
Removing the state of ReactBurgerMenu isn't compatible with older versions of React. I know that this request is a bit regressive, but explicitly defining the state would be more practical for those of us who can't easily upgrade React.
This commit is contained in:
Vendored
+1
-1
@@ -41,7 +41,7 @@ export interface Props {
|
||||
width?: number | string;
|
||||
}
|
||||
|
||||
export class ReactBurgerMenu extends React.Component<Props> { }
|
||||
export class ReactBurgerMenu extends React.Component<Props, {}> { }
|
||||
|
||||
export class slide extends ReactBurgerMenu { }
|
||||
export class stack extends ReactBurgerMenu { }
|
||||
|
||||
Reference in New Issue
Block a user