()
| 55 | } |
| 56 | |
| 57 | render() { |
| 58 | const { componentClass } = this.state; |
| 59 | const { children } = this.props; |
| 60 | if (componentClass) { |
| 61 | return React.createElement(componentClass, this.props, children); |
| 62 | } |
| 63 | return React.createElement( |
| 64 | placeholder as |
| 65 | | keyof ReactHTML |
| 66 | | FunctionComponent<PC & T & { shouldLoad: boolean }>, |
| 67 | this.props, |
| 68 | children, |
| 69 | ); |
| 70 | } |
| 71 | }; |
| 72 | } |