DEV Community

Usama
Usama

Posted on

๐Ÿš€ Starting the *Eat-N-Split* Project (From My React Course)

Documenting my learning journey โ€” this is a course project, not my original idea.


๐Ÿ“ Introduction

Today, I began working on the Eat-N-Split project from my React course.
This small practice app is designed to help learners understand some essential React concepts such as conditional rendering, component structure, and state management.

Iโ€™m sharing my progress here to document what Iโ€™m learning โ€” not to claim the concept or UI as my own. This project is part of the curriculum Iโ€™m following.


๐ŸŽฏ What the Project Teaches

Eat-N-Split is a simple bill-splitting mini-app where you:

  • Display a list of friends
  • Show who owes whom
  • Select a friend
  • Split a bill
  • Update balances

Even though the app is small, it touches several important concepts that every React developer must master:

โœ” Components & Props

โœ” Mapping Lists to UI

โœ” Conditional Rendering

โœ” Handling State (useState)

โœ” Forms & Controlled Components

โœ” Clean UI Logic


๐Ÿงฑ Day 1 Progress: Friend List UI

In this first step, I focused only on the friend list.

Each friend in the list contains:

  • a name
  • an avatar
  • a unique ID
  • a balance (positive, negative, or zero)

Then I used a simple conditional rendering pattern for the balance:

if balance < 0 โ†’ "You owe them"
if balance > 0 โ†’ "They owe you"
if balance === 0 โ†’ "You are even"
Enter fullscreen mode Exit fullscreen mode

This part helped me better understand how to display different UI states based on dynamic data.


๐Ÿ’ก What I Learned Today

Even though this is just the starting point, it helped me strengthen some fundamentals:

๐Ÿ”น How to structure a component cleanly

๐Ÿ”น How to loop through arrays to render UI

๐Ÿ”น How to keep logic readable inside JSX

๐Ÿ”น How simple conditions can control the entire user interface

These concepts show up everywhere in React, even in advanced apps, so practicing them is extremely valuable.


๐Ÿ”ฎ Whatโ€™s Coming Next?

According to the course roadmap, the upcoming steps will include:

โœ” Selecting a friend
โœ” Adding a new friend
โœ” Splitting a bill
โœ” Updating the balance using useState
โœ” Making the interface fully interactive

Iโ€™m excited to continue building the app and improving my understanding of Reactโ€™s data flow and state logic.


๐Ÿ‘ Final Thoughts

Iโ€™m enjoying this project because it combines simplicity with practical hands-on React experience.
Iโ€™ll keep sharing my progress as I complete each module of the course.

If you're also learning React, this project is a great exercise to strengthen your fundamentals.

Top comments (0)