Should I use tsconfig.json for a simple Typescript project?

0
8
Asked By CuriousCoder42 On

I'm working on a straightforward web application using Flask for the backend and considering either React with Vite or just plain Typescript with HTML and CSS for the frontend. Since creating a React project provides all the needed configuration files including ESLint, do I need to set up these configurations manually if I opt for vanilla Typescript? Would using 'npx tsc --init' be sufficient? Given that my app is just a single page for uploading images (which communicates with the backend for fetching results), is React necessary, or can I keep it simple with just Typescript?

1 Answer

Answered By SimplicitySeeker99 On

Honestly, for your project, vanilla JavaScript might just do the trick. There's no need to add extra complexity with React if your app is really simple. Also, remember that TypeScript needs to be compiled to JavaScript first since it isn't natively supported by browsers. Just keep it simple and focus on the core functionality!

PragmaticDev -

Yeah, choosing JavaScript sounds solid. You can always switch to TypeScript later if needed.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.