(Component: React.ComponentType)
| 5 | export let appProxy: ReactProxyComponent; // need to export it so that it stays without being gc'd |
| 6 | |
| 7 | export function hot(Component: React.ComponentType): React.ComponentType { |
| 8 | if (appProxy) { |
| 9 | appProxy.update(Component); |
| 10 | } else { |
| 11 | appProxy = createProxy(Component); |
| 12 | } |
| 13 | return appProxy.get(); |
| 14 | } |