kenneth-duverge / the-newsletter

https://the-newsletter.vercel.app
1 stars 0 forks source link

Clean up imports #5

Closed kenneth-duverge closed 10 months ago

kenneth-duverge commented 10 months ago

Cleaning up imports to all use the path alias ( @/components )

vercel[bot] commented 10 months ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
the-newsletter ✅ Ready (Inspect) Visit Preview Jan 17, 2024 1:16am
kenneth-duverge commented 10 months ago

Idk too much about path aliases but I like how it improves the readability of the imports! It's also great from a 'tooling that scans for imports" or "file migration" perspective. Can you send me a relevant doc or 2 so I can quickly get up to speed on this concept?

For sure! It's just a way to not have a bunch ../../../ in your import path. Here's a good doc https://blog.logrocket.com/using-path-aliases-cleaner-react-typescript-imports/