React, Vite, Typescript and Styled-Components

1. Opening

I had a hard time configuring how to using React/Typescript and styled-components on Vite. Most tutorials were written out in CRA as it is still the popular choice over Vite. However, I like Vite due to its blazing-fast speed.

  • Vite (When asked, choose React-ts in the terminal)
npm create vite@latest
cd <foldername>
npm install
npm run dev
npm install --save styled-components
  • Eslint
    You can utilize Eslint which is certainly helpful when you code.
npm init @eslint/config

DONE