Create index export file for .js/ts or .jsx/tsx files in the current folder
example:
|
|- elements
|- Button.tsx
|- Modal.tsx
|- Modal.tsx
If you execute Create Index File command in any of the files
inside elements folder it will create index.ts
result: new file (index.ts) inside elements folder
index.ts
export { default } from ./Button
export { default } from ./Modal
export { default } from ./Modal
Installation
Add extension to VS code
2. Search for Create Index File
3. Check for extension with manish as author name
4. Click Install