Skip to content

Commit 268a829

Browse files
committed
UI Component - add generics
1 parent f87c716 commit 268a829

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import React from 'react';
2-
export default class UIComponent extends React.PureComponent {
2+
export default class UIComponent<P = {}, S = {}, SS = any> extends React.PureComponent<P, S, SS> {
33
}

src/commons/UIComponent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ import React from 'react';
22

33
// For use of applying dynamic context over all components
44

5-
export default class UIComponent extends React.PureComponent {}
5+
export default class UIComponent<P = {}, S = {}, SS = any> extends React.PureComponent<P, S, SS> {}

0 commit comments

Comments
 (0)