Home >Web Front-end >JS Tutorial >My React Journey: Day 20
Today, I worked on a project titled Budget Tracker. The goal of this project was to apply previously learned concepts in a practical and functional way. Here's an overview of the concepts I implemented and how they enhanced my skills:
Concepts Learned and Applied
1.HTML Structure and Semantics
2.CSS for Styling
Learned to style the project for both functionality and aesthetics:
3.JavaScript Modules
4.Local Storage
localStorage.setItem("budget-tracker-entries-dev", JSON.stringify(data));
5.Dynamic DOM Manipulation
this.root.querySelector(".entries").insertAdjacentHTML("beforeend", BudgetTracker.entryHtml());
6.Event Handling
I used event listeners to make the app interactive. For example:
row.querySelector(".delete-entry").addEventListener("click", e => { this.onDeleteEntryBtcClick(e); });
7.Data Validation and Formatting
const totalFormatted = new Intl.NumberFormat("en-US", { style: "currency", currency: "USD" }).format(total);
8.Version Control and Debugging
This project gave me a deeper understanding of:
The project also sharpened my problem-solving skills, as I faced challenges like handling empty input fields and ensuring accurate calculations, etc.
The tracker consists of input fields for date, description, type, and amount, with a dynamic summary section displaying the total balance.
This project reinforced my confidence in building real-world applications! ?
Ready to dive into React Native
The above is the detailed content of My React Journey: Day 20. For more information, please follow other related articles on the PHP Chinese website!