I have a form in react:
<form onSubmit={this.handleSubmit}>
And the handleSubmit function is:
handleSubmit = (values) => {
console.log(values);
console.log(values.target[0].value);
values.preventDefault();
}
values.target[0].value
prints the correct value of the input. However, in chrome devtools I don't see it. I see instead [[Target]]
.
What does the [[]]
mean, and where is the target[0].value
?