I\'ve seen multiple examples of React components using Typescript:
class Foo extends React.Component
It seems there is no a
From https://github.com/DefinitelyTyped/DefinitelyTyped/blob/15b7bac31972fbc081028937dfb1487507ca5fc9/types/react/index.d.ts#L199-L200
interface Component extends ComponentLifecycle
{ }
Props and state are initialised to {}
, so for a component with no state nor prop we can simply do:
class Foo extends React.Component {}