score:7

Accepted answer

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.


Related Query

More Query from same tag