Skip to content
This repository was archived by the owner on Oct 14, 2025. It is now read-only.

React 1/week2#45

Open
GuzideGuzelbey wants to merge 2 commits into
HackYourFuture-CPH:mainfrom
GuzideGuzelbey:react-1/week2
Open

React 1/week2#45
GuzideGuzelbey wants to merge 2 commits into
HackYourFuture-CPH:mainfrom
GuzideGuzelbey:react-1/week2

Conversation

@GuzideGuzelbey
Copy link
Copy Markdown

@GuzideGuzelbey GuzideGuzelbey commented Mar 29, 2025

I guess I will focus on responsiveness this week. I couldn't focus on that functionality yet.

Thank you in advance:)

note: Please consider only this commit f1b8941

Comment thread app/destination/page.js
let numberOfPlanets = 0;
const [planets, setPlanets] = useState(planetData);
const selectedPlanets = planets.filter((planet) => planet.isSelected);
const numberOfPlanets = selectedPlanets.length;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job using the derived state here!

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you :)

Comment thread app/destination/page.js
</section>
<section className="card">
<h2>Possible destinations</h2>
{planets.map((planet) => (
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job using map here!

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you again :)

@desafree
Copy link
Copy Markdown

Nice job on focusing on the style as well 🫡

@GuzideGuzelbey
Copy link
Copy Markdown
Author

I wish I had more time to work on responsiveness, but could not. Thank you for your time :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants