Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

reactjs absolute import

/* 
	Create a jsconfig.json in the root of your project 
    then add the following code snippet.
    
    use replace "src" with "." if you are using NextJS
*/

{
  "compilerOptions": {
    "baseUrl": "src"
  },
  "include": ["src"]
}
 
PREVIOUS NEXT
Tagged: #reactjs #absolute #import
ADD COMMENT
Topic
Name
3+3 =