How to properly import React JSX from separate file in Typescript 1.6
I expect, that you need to properly export WorkList
class in the worklist.tsx
file, e.g. as default export:
export default class WorkList extend React.Component<Props, {}>
and then import it in app.tsx
:
import WorkList from "worklist"
This should solve your problem.