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

static-list resolving #1391

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

Conversation

reb0rned
Copy link

@reb0rned reb0rned commented Mar 1, 2025


<p>
{' Posted by '}
console.log(posts)

Choose a reason for hiding this comment

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

Better to delete console.log before committing.

Copy link

@KateShepel KateShepel left a comment

Choose a reason for hiding this comment

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

Good job!

Copy link

@mateacademy-ai-mentor mateacademy-ai-mentor 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 on implementing the task! 🎉 Your code meets the requirements and is well-structured. While there are a couple of minor suggestions, such as renaming the PostList component to better reflect its functionality and adding a semicolon after import statements, these do not impact the functionality. Keep up the good work and consider these improvements for future projects! 😊

✨ Please rate this review in the Platform's notification center. I will be grateful for your feedback! ✨

import postsFromServer from './api/posts.json';
import commentsFromServer from './api/comments.json';
import usersFromServer from './api/users.json';
import { PostList } from './components/PostList'

Choose a reason for hiding this comment

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

It's a good practice to add a semicolon at the end of import statements to avoid potential issues in environments that require semicolons.

export const PostList = () => <>Put the list here</>;
import { PostInfo } from '../PostInfo'

export const PostList = ({ post }) => {

Choose a reason for hiding this comment

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

The component name PostList implies it should handle multiple posts, but it currently only handles a single post. Consider renaming the component to better reflect its functionality or modifying it to handle an array of posts.

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.

3 participants