M
M
MaxDms2020-07-08 08:16:43
JavaScript
MaxDms, 2020-07-08 08:16:43

Why are objects duplicated in state REACT?

The essence of the problem: I somehow duplicated objects in state. For the 3rd day I have been re-reading all possible forums and I cannot find a similar problem.
ps Perhaps for someone it will be a very obvious mistake, since I'm just learning to program, I will be glad for any help.
5f0555d3e5e3c497818844.png

plnkr.co/edit/fauhW1er28412Hif?open=Hello.js&deferRun=1
link to the files that caused the problem

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
Eduard07, 2020-07-08
@MaxDms

It seems that you have already asked in chats, here maybe you registered the commentPage props where you passed the commenPage object, I think it’s a common mistake when writing.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question