In this Frontend Mentor job listings project, I focused on making things work smoothly using React hooks. I used hooks like useState and useEffect to handle the app's actions and data effectively. With the help of useLocation, useSearchParams, and useParams, I managed the URL information to let users easily filter job listings. Though design was simple, the project taught me how to create a user-friendly experience by prioritizing functionality. It improved my React skills and showed me the power of hooks for dynamic web apps.
- Live Site URL: https://job-listings-react-tailwind.netlify.app
- Reactjs Router
- React hooks [useState, useeffect, useLocation, useSearchParams, useParams]
- Tailwindcss
- Flexbox
- Semantic HTML5 markup
- Mobile-first workflow
In this job listings project, I learned how to use useLocation and URLSearchParams in React. These tools helped me manage query parameters from the URL and create a user-friendly job search experience.
function removeFilter(filterName) {
const newQuery = new URLSearchParams("");
searchParams.forEach((value, key) => {
if (value != filterName) {
newQuery.append(key, value);
}
});
setSearchParams(newQuery);
}
- URLSeachParams - This helped me for working with SearchParams JavaScript
- Twitter - Karim_aoulallay
- Frontend Mentor - @karim_aoulallay