import * as React from "react"; import { AppContainer, hot, ReactComponent } from "react-hot-loader"; declare function describe(desc: string, f: () => void): void; declare function it(desc: string, f: () => void): void; it("Using AppContainer", () => { interface ErrorReporterProps { error: any; } class ErrorReporterComponent extends React.Component { render() { return

{this.props.error.message}

; } } const DummyComponent = () =>

Dummy component

; const ErrorReporter = ({ error }: ErrorReporterProps) => ; class AppContainerTest extends React.Component { render() { return (
); } } }); it("Using hot", () => { interface Props { name: string; } class Foo extends React.Component { render(): JSX.Element { return
Foo
; } } const FooSFC = (props: { surname: string }) => { return
; }; const Bar = hot(module)(Foo); const BarSFC = hot(module)(FooSFC); const testRender = () => { return ( <> ); }; });