.Net, Rails, and other stuff
Sai Jyothi Prasad Ponduru's learning blog
Saturday, August 22, 2020
React - handleChange() - using event.persist() and computed property names
Using event.persist() and computed property names
handleChange
=
({
event
,
value
})
=>
{
event
.
persist
();
this
.
setState
({[
event
.
target
.
name
]:
value
});
}
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment