TheSoftwareHouse / react-starter-boilerplate

A highly scalable React SPA boilerplate focused on performance and best practices, written in TypeScript.
https://tsh.io/
MIT License
59 stars 20 forks source link

Is the barrel file needed in ui module? #132

Open Filipo11021 opened 7 months ago

Filipo11021 commented 7 months ago

https://github.com/TheSoftwareHouse/react-starter-boilerplate/blob/master/src/ui/index.ts

the barrel file is not the best idea and it's not used either

https://github.com/TheSoftwareHouse/react-starter-boilerplate/blob/master/src/app/about/About.tsx#L1 https://github.com/TheSoftwareHouse/react-starter-boilerplate/blob/master/src/app/user/User.tsx#L3

direct import is used in each example component

qh4r commented 2 months ago

Hello there, thanks for your interest @Filipo11021, and sorry for the late response.

You are indeed right, and we will remove barrel files shortly. 🙇

We'll close the issue once it's done 👍