Configure absolute path for components, hooks, services etc import
Opened this issue · 0 comments
utubun commented
Objective
Simplify the import of the components, hooks, services etc configuring the project for absolute paths import from src
.
Solution
Config
Create a jsconfig.json
file in the root directory with following content:
{
"compilerOptions": {
"baseUrl": "src"
},
"include": ["src"]
}
Import
Change import paths in App.js
and all related files.