DEV Community

ajidk
ajidk

Posted on

Uncontrolled textarea element

Renders an uncontroller <textarea> element that uses a callback function to pass its value to the parent component.

  • Use the defaultValue passed down from the parent as the uncontrolled input field's initial value.

  • use the onChange event to fire the onValueChange callback and send the new value to the parent.

Image description

Top comments (0)