I'm porting my code from ES6 to .TS / .TSX
Given a folder structure like this:
Table/Tables.tsx
Importing from another react component in ES6 I used to be able to just do this:
import Table from '../Table'
i.e. it would be smart enough to resolve the import by folder name. Now that I've switched to Typescript I have to import more verbosely (from another .tsx file);
import Table from '../Table/Table'
I've looked here https://www.typescriptlang.org/docs/handbook/module-resolution.html
I'm using Webpack with React Starter Kit.