Try React 18 with Vite, Typescript and Vercel

submited by
Style Pass
2021-06-17 04:00:04

This tutorial will demonstrate a step-by-step guide to create your project using React 18 alpha, Typescript, Vite and deploy it to Vercel (freemium).

Run this command to create your new Vite project: (Vite is a code generator similar to CRA but it takes < 1s to launch dev mode versus > 45s using CRA)

As @types/react doesn't understand the new React 18's APIs or types yet, we need to update "tsconfig.json" file: after "jsx": "react" add:

Leave a Comment