gpt-3.5-turbo-0301· OpenAI
WildChat-4.8M (AI2)
how to make ts.config in react?
- User
how to make ts.config in react?
- Assistant
In order to create a
tsconfig.jsonfile for a React project with TypeScript, you can follow these steps:-
Open your project folder in VS Code or any other code editor.
-
Navigate to the root directory of your project and create a new file named
tsconfig.json. -
Add the following contents to the
tsconfig.jsonfile:code{ "compilerOptions": { "jsx": "react", "target": "es6", "module": "commonjs", "noImplicitAny": true, "moduleResolution": "node", "esModuleInterop": true, "sourceMap": true, "outDir": "./dist", "strict": true }, "include": ["src"] }
-