Design comparison
SolutionDesign
Solution retrospective
I'm not sure if my code is okay. I think the "isClicked" useState in Inform.tsx file is messy, can it be cleaner or are there any solution to make it cleaner. If you have any suggestion, feel free to tell me.
Community feedback
- @0xabdulkhaliqPosted over 1 year ago
Hello there 👋. Congratulations on successfully completing the challenge! 🎉
- I have other recommendations regarding your code that I believe will be of great interest to you.
HTML 🏷️:
- Your solution generates accessibility error reports due to
non-semantic
markup
- So hereafter use semantic elements such as
<main>
instead of<div id="root">
and<footer>
instead of<div class="attribution">
to improve accessibility and organization of your page.
- Use HTML5 semantic elements such as
<header>
,<nav>
,<main>
,<aside>
, and<footer>
to define these sections
I hope you find it useful! 😄 Above all, the solution you submitted is great!
Happy coding!
Marked as helpful0
Please log in to post a comment
Log in with GitHubJoin 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