Question about event.target.value

is

event.target.value

Basically just syntax or something? Im confused how it gathers the input because there is no object called event that has properties target and value.

Thanks,

Andrej

Without seeing more of the code, it is difficult to give you a perfect answer. However, all clickable elements will have access to the global event object when clicked.

This is what it said
" First, create a method called handleChange() that has a parameter called event . When the method is called, it receives an event object that contains a string of text from the input element. You can access this string with event.target.value inside the method. Update the input property of the component’s state with this new string."

Exactly. When the event fires, JavaScript sends the event object as the first argument to the method. That is just how it works.