Toggle navigation
Email or Username
Password
Remember
Login
Register
|
I forgot my password
Questions
Unanswered
Tags
Users
Ask a Question
Why change the word in all messages?
0
like
0
dislike
3
views
Hi guys. Practice React
While doing the table:
https://codesandbox.io/s/yjqq555689
When they click
Delete
I have a message
Row 0 deleted
when you press
Restore
, it displays
Row 0 restored
,
BUT
erased the message above and I have
2 restored
, instead of what would be
1 deleted
and
1 restored
Why?
Perhaps because of the reference to state productList?
react
asked
Apr 11, 2019
by
Insolation
|
3
views
answer
comment
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
0
like
0
dislike
You take deleted from the array productsList, respectively, at the same time different values can not be. It is necessary that each element had its history deleted - and use it. Type
so
.
answered
Apr 16, 2019
by
0xD34F
ask related question
comment
Please
log in
or
register
to add a comment.
Related questions
0
like
0
dislike
2
answers
Unread messages in the chat React?
asked
Apr 9, 2019
by
mr_drinkens89
django
react
0
like
0
dislike
2
answers
Why props change all at once, not for each separately, react/redux?
asked
Apr 9, 2019
by
ch-aqwer
javascript
react
redux
0
like
0
dislike
1
answer
How to change the state of all instances of a React component?
asked
Jun 6, 2019
by
spacenear
react
0
like
0
dislike
1
answer
How to React to change style of all elements of the class?
asked
Jun 3, 2019
by
Nivaech
javascript
react
0
like
0
dislike
2
answers
All application will rerendered, if you change some internal(somewhere in the Appendix) state of one of the components?
asked
Apr 9, 2019
by
alex_keysi
javascript
react
Most popular tags
javascript
php
css
html
jquery
wordpress
python
linux
web-development
mysql
android
windows
java
layout
c#
computer-networks
node.js
cpp
iron
yii
vue.js
1C-Bitrix
react
laravel
django
nginx
system-administration
search-engine-optimization
api
ubuntu
the-it-education.
ajax
sql
programming
hosting
cms
design
apache
google-chrome
bootstrap
Vkontakte
macos
google
network-administration
git
laptops
algorithms
regular-expressions
unity-game-engine
email
angular
database
network-equipment
software
wooŃommerce
debian
.net
ios
information-security
video
law-in-it
browsers
books
parsing
wi-fi
game-development
career
htaccess
postgresql
telegram
mikrotik
mobile-development
ruby-on-rails
the-domain-name-system
modx
Yandex
c
json
opencart
Habr
freelance
vpn
asp.net
windows-server
symfony
bots
hard-drives
math
qt
DIY
audio
frontend
payment-system
bash
electronics
gulp.js
user-interface
docker
online-shopping
110,608
questions
257,186
answers
0
comments
33,905
users