Skip to content

Category: Questions

Filter an array of objects by one key and show another

I’m trying to filter out questions based on the difficulty that is set to the question in the array. So when I check the box at the beginning of the quiz it will display the question based on the difficulty it has been assigned. I think I have the filter right but I don’t know how to display the q…

React router v6, group routes by feature

I am using React router v6. THE PROBLEM: my App.tsx is very big as it includes routes for all of the application: Ex. I would like to group these routes by feature so that I end up having something like this: it would look cleaner and easier to read. So far I have created something like this for the Admin