Design comparison
SolutionDesign
Solution retrospective
Small project but it took me a while to complete...
- My first time using React context API and it was quite straight forward.
- I had to revisit the basics in JavaScript -- it's array methods -- because I found myself having to research how do something and only to find out there's no one method to achieve that, you have to use a combination of them. I've used PHP and their array functions I find them to be quite useful. Here's an example where I spent most time trying to figure out and ended up leaving the laziest solution:
// src/components/Layout/Jobs
// fn to return jobs that match current filters
const filterJobs = jobs => jobs.filter(({ languages, tools }) => [...languages, ...tools].filter(value => filters.includes(value)).length )
Any feedback would be appreciated 👌
Community feedback
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