
In this guide, I'm going to walk you through the steps to set up a Vite project with TypeScript to create a basic to-do list application. We're goi...
For further actions, you may consider blocking this person and/or reporting abuse
What do the cool kids use these days besides vite?
Honestly Vite is amazing! haha
why no early return here?
That's a good catch! I also prefer guard statements over nested ifs but this one slipped my mind. I'll update the post now.
Yeah your update was correct but the suggestion is not: you caught that it should be
but also, you can shorthand the text property assignment
whoopsie, that was a typo. Thanks for correcting!
You're very welcome, I love that you used Vanilla DOM for this! Big ups!
This guide walks you through setting up a simple to-do list application using Vite and TypeScript. You'll first create a new Vite project with the vanilla-ts template and install the necessary dependencies. The project structure includes essential files like main.ts, index.html, and tsconfig.json. You'll modify main.ts to implement the to-do list functionality, such as adding, marking as completed, and deleting items, with type safety ensured by TypeScript. The index.html file is updated to link to the TypeScript code, and running npm run dev will start the Vite development server. Finally, npm run build will bundle your app for production.
bruh
Nice article with a great step by step!
If you are looking for something already set up with Vite and Typescript, including hooking it up to the backend, check out the open-source serverless first fullstack framework ⚡️ Baseline ⚡️ github.com/Baseline-JS/core
clearing and rerendering after each action is really bad for performance