Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to not use relative imports in react js

// create a jsconfig.json file in your root dir(where package.json is located) and add this:
{
  "compilerOptions": {
    "baseUrl": "src"
  }
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #relative #imports #react #js
ADD COMMENT
Topic
Name
8+3 =