Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

react2-week1/meraj #317

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

react2-week1/meraj #317

wants to merge 1 commit into from

Conversation

MerajSharifi
Copy link

No description provided.

@github-actions github-actions bot changed the title github user search react2-week1/meraj Feb 1, 2024
Copy link

@babak-f babak-f left a comment

Choose a reason for hiding this comment

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

Great job 👍


{loading && <p>Loading...</p>}
{error && <p>Error fetching: {error}</p>}
{!loading && !error && users.length === 0 && <p>No results...</p>}
Copy link

Choose a reason for hiding this comment

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

Nice and clean - good job ;)

!error &&
users.map((user) => (
<li key={user.id}>
<p>{user.login}</p>
Copy link

Choose a reason for hiding this comment

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

You don't need the p tag inside a list item (<li>) tag. It's basically a list item not a paragraph.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants