DEV Community

Adaobi Ezelioha
Adaobi Ezelioha

Posted on

Implementing JsConfig in react app

Creating jsconfig.json file in your project will make it easier to develop complex javascript applications that have a lot of different folders by using absolute paths.

Step 1 -- Creating jsconfig.json file
In the root directory of my project (ie the app folder), I created a new file named jsconfig.json as shown below.

Image description

Step 2 -- Configure the path
In this jsconfig.json file, I added a compilerOptions key and set the baseUrl to src. You can also include an include key and set it to src array. That's all

{
    "compilerOptions": {
        "baseUrl": "src"
    },
    "include": ["src"]
}
Enter fullscreen mode Exit fullscreen mode

Image description

Top comments (0)

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post