We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9da56bc commit 92212c6Copy full SHA for 92212c6
example/nest.tsx
@@ -1,24 +1,21 @@
1
import * as React from "react";
2
+import {InjectedProps} from '../src';
3
-export interface IProps {
4
- foo: string;
5
-}
6
-export class Nest extends React.Component<IProps,any> {
7
- constructor (props) {
8
- super(props);
9
- }
+export class Nest extends React.Component<InjectedProps,any> {
10
uiCanExit = () => {
11
return new Promise(resolve => {
12
setTimeout(() => {
13
resolve();
14
}, 1000);
15
});
16
}
+
17
render() {
+ const {foo} = this.props.resolves;
18
return (
19
<div>
20
<h2>Nested</h2>
21
- <p>Resolved foo is: {this.props.foo}</p>
+ <p>Resolved foo is: {foo}</p>
22
</div>
23
);
24
0 commit comments