React Advice Generator

Please log in to post a comment
Log in with GitHubCommunity feedback
- P@obriedan
Hey Nathan,
There should be the linebreak in the starter pack, it's in the assets folder.
Is there a reason you have three
<br />
tags? If you're trying to create space, considermargin
orpadding
instead.Another small tip, you may want to destructure the props you send into your 'Advice.js' component.
function Advice({number, quote}) { ..... rest of function }
Doing this means you only grab the props you need, and you don't need to use
props.number
orprops.quote
in your JSX.Marked as helpful
Join our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord