Skip to content

Commit 8d498bc

Browse files
authored
UI Component - add generics (#842)
* UI Component - add generics * Remove default * Revert "Remove default" This reverts commit cf0d386.
1 parent 89badd8 commit 8d498bc

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)