What is a React ?
A JavaScript library for building user interfaces
REACT is a Declaritive Liabrary so it takes care of DOM logic and makes it painless to create interactive UI's.
//state in event handler
var[like, setLike] = useState(0);
//like = intial , setLike = store the value after the update
function likeUpdate(){
var newLike = like+1;
setLike(newLike)
}
//event.target
<input onChange= {someEvent}> </input>
//input is the element that triggered onChange event