npm install -g create-react-app
npx create-react-app react-ts-demo --template typescript
cd react-ts-demo
npm install styled-components@latest --legacy-peer-deps
npm start
Open http://localhost:3000 to view it in the browser.
This project was bootstrapped with Create React App.