Skip to content

Commit 831984b

Browse files
authored
🤖 Merge PR DefinitelyTyped#71361 fix(react-no-ssr): Fix FalseExportDefault, modify test by @hkleungai
1 parent e38e2b6 commit 831984b

File tree

3 files changed

+12
-16
lines changed

3 files changed

+12
-16
lines changed

‎attw.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1478,7 +1478,6 @@
14781478
"react-native-signature-capture",
14791479
"react-native-svg-animated-linear-gradient",
14801480
"react-native-toast-native",
1481-
"react-no-ssr",
14821481
"react-onsenui",
14831482
"react-paginate",
14841483
"react-paginate/v5",
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
import * as React from "react";
22

3-
export default class NoSSR extends React.Component<{
3+
declare class NoSSR extends React.Component<{
44
children?: React.ReactNode;
55
onSSR?: React.ReactElement | number | string | undefined;
66
}> {}
7+
8+
export = NoSSR;
Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
import * as React from "react";
22
import NoSSR from "react-no-ssr";
33

4-
export class NoSSRTest extends React.Component {
5-
render() {
6-
return (
7-
<div>
8-
<NoSSR>
9-
<div />
10-
</NoSSR>
11-
<NoSSR onSSR={<span />}>
12-
<div />
13-
</NoSSR>
14-
</div>
15-
);
16-
}
17-
}
4+
<NoSSR></NoSSR>;
5+
6+
<NoSSR>
7+
<div />
8+
</NoSSR>;
9+
10+
<NoSSR onSSR={<span />}>
11+
<div />
12+
</NoSSR>;

0 commit comments

Comments
 (0)