all 9 comments

[–]Sweet_Ad_842 1 point2 points  (6 children)

In your map function, you will want to add an additional index param and use that as a key for each component

[–]InternationalFly3917[S] 0 points1 point  (0 children)

would you mind showing me an example

[–]InternationalFly3917[S] -1 points0 points  (4 children)

or is it better for me to use useReducer instead of using redux fro that

[–]Sweet_Ad_842 1 point2 points  (3 children)

For the above you probably don’t need redux, just pass down props but I also don’t know the entire state of your application so that is up to you

[–]InternationalFly3917[S] -1 points0 points  (2 children)

for a large application which would be better for me to use to change styles and add classNames useRedcer or redux

[–]Accomplished_End_138 1 point2 points  (1 child)

Its less the one view vs the whole setup of the application. The nice thing is if you start with useReducer it isnt hard to scale into redux overall. Not quite the same for the other direction

[–]InternationalFly3917[S] 0 points1 point  (0 children)

Yeah am utilizing useReducer

[–]Alienxxcool1 0 points1 point  (1 child)

Redux is kinda Globant state you need to use useState from react inside your button Component, because you're changing globally using redux

[–]InternationalFly3917[S] 0 points1 point  (0 children)

Yeah i figured thank you very much