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

My solution #2013

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

My solution #2013

wants to merge 2 commits into from

Conversation

Karanelus
Copy link

@Karanelus
Copy link
Author

What i need to do to pass the test, even when all the dependents are seen and work?


export const PostInfo: React.FC<Props> = ({ post }) => {
const { user, title, body, comments } = post;
const postetByText = `Posted by ${(<UserInfo user={user} />)}`;

Choose a reason for hiding this comment

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

don't use template literals if your component returns jsx element and instead use conditional rendering for UserInfo so it only appears if user exists on post

@natalia-klonowska
Copy link

natalia-klonowska commented Jul 9, 2024

What i need to do to pass the test, even when all the dependents are seen and work?

here you can see problem that needs to be fixed
image

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