Skip to content

A simple to-do list built from scratch with React, TypeScript, and Snowpack. This project highlights core TypeScript concepts, including static typing, interfaces, and type inference.

Notifications You must be signed in to change notification settings

basedhound/todo-list_react-ts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Banner

Todo List - React / TypeScript

[EN] A simple to-do list built from scratch using React, TypeScript, and Snowpack. This project focuses on understanding the core concepts of TypeScript, including static typing, interfaces, and type inference. By incorporating local storage to persist data and leveraging Snowpack for fast development, this hands-on project provides a practical approach to mastering TypeScript fundamentals while working with modern development tools.

[FR] Une simple liste de tâches construite de zéro avec React, utilisant le local storage pour conserver les données. Ce projet décompose les concepts clés de React et les pratiques importantes, offrant une approche pratique pour comprendre les fondamentaux du développement React.

  • React is a popular JavaScript library for building user interfaces, particularly single-page applications where data changes over time. React's component-based architecture allows developers to create reusable UI components, making development more efficient and the codebase easier to maintain.

  • Local Storage is a web storage feature that allows web applications to store data persistently in the user's browser. It provides a simple key-value store with a straightforward API, enabling developers to save data across browser sessions without expiration. Local Storage is ideal for storing user preferences, session data, and other non-sensitive information. Its synchronous API makes it easy to use, though it is limited to storing string data only and has a size limit of around 5MB per domain.

  • TypeScript is a statically typed superset of JavaScript that adds optional type annotations to enhance code quality and maintainability. It enables early detection of errors through its type system, allowing for more robust and scalable applications. TypeScript integrates seamlessly with JavaScript, providing a gradual learning curve and tooling support that improves the development experience. It compiles to plain JavaScript, ensuring compatibility with existing JavaScript codebases and libraries.

  • Snowpack is a modern front-end build tool designed for fast and efficient development. It uses a build process based on native ES modules, which eliminates the need for bundling during development and enables instant updates through hot module replacement (HMR). Snowpack's minimal configuration and focus on leveraging modern browser capabilities make it an ideal choice for optimizing the development workflow of web applications. It supports various frameworks and integrates easily with existing toolchains.

  • UUID (Universally Unique Identifier) is a standard for generating unique identifiers for use in software applications. UUIDs are 128-bit values typically represented as a 36-character string, including hyphens. They are used to ensure unique identification across different systems and applications, making them ideal for scenarios like database keys, session identifiers, and unique object references. UUIDs help avoid conflicts and collisions, providing a reliable way to generate unique values.

  • Canvas Confetti is a lightweight JavaScript library for creating confetti effects in web applications. It uses the HTML5 element to render colorful confetti animations, adding a celebratory or festive touch to user interfaces. The library is easy to integrate and customize, allowing developers to control confetti density, colors, and animation properties. It's often used to enhance user experiences with visual effects, such as celebrations or notifications.

Follow these steps to set up the project locally on your machine.


Prerequisites

Make sure you have the following installed on your machine:


Cloning the Repository

git clone {git remote URL}


Installation

Let's install the project dependencies, from your terminal, run:

npm install
# or
yarn install


Running the Project

Installation will take a minute or two, but once that's done, you should be able to run the following command:

npm run dev
# or
yarn dev

Open http://localhost:8080 in your browser to view the project.

About

A simple to-do list built from scratch with React, TypeScript, and Snowpack. This project highlights core TypeScript concepts, including static typing, interfaces, and type inference.

Topics

Resources

Stars

Watchers

Forks