How to make categories dynamic?
Asked by Ankur Kushwaha about 2 years ago
Could you please explain? Or give a SS?
You have already declared the categories array, so what you can do is fill the array with the filter strings in your case all,beakfast and shakes. Then you can map through the array in categories.jsx and It will run absolutely fine.