Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react next alias import

// tsconfig.json or jsconfig.json
{
  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "@/components/*": ["components/*"]
    }
  }
}
Source by nextjs.org #
 
PREVIOUS NEXT
Tagged: #react #alias #import
ADD COMMENT
Topic
Name
3+2 =