summaryrefslogtreecommitdiff
path: root/preact/compat/test/ts/lazy.tsx
blob: b3797c19a2da1df256b33220d9118ee0b85f0c01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import * as React from '../../src';

export interface LazyProps {
	isProp: boolean;
}

interface LazyState {
	forState: string;
}
export default class IsLazyComponent extends React.Component<
	LazyProps,
	LazyState
> {
	render({ isProp }: LazyProps) {
		return <div>{isProp ? 'Super Lazy TRUE' : 'Super Lazy FALSE'}</div>;
	}
}