Absolute Imports In Vite React Typescript
Problem
Relative imports are the default way to reference source files in JavaScript projects. such as import Button from "../../../components/Button";
But when we are developing React applications,
importing files will be terrible when the applications are bigger because of the level of complexity and file structure,
Even more if in the future, we do refactoring or restructure files and directories we must update every import command.
Solution
update yout code as example below:
Usage
Thanks you 😊