codedamn

How to make categories dynamic?

Asked by Ankur Kushwaha about 2 years ago

2 Answers

    0

    Could you please explain? Or give a SS?

    @zebracoder

    Ajay Kumar

    @zebracoder

    0

    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.

    @abhigyansinghh

    Abhigyan

    @abhigyansinghh

Your answer