Skip to content

Tag: reactjs

How to count values without the duplicate in react

Language used : js with react I need to count how much “theme” I have but not if he’s already count/exist data example : Here, i have two theme : love and horror. I know how to get the number of theme but i don’t want to count the duplicate, so here i only want to get “2” a…

Shuffling in react

I am fetching data from an api.Trying to make quiz application from the data of an API.I have selected random countries and their respective capitals and map them to my quiz application.I have achieved this already.Now i am trying to shuffle my answer options but not able to do that.anybody can please help? H…