react textarea value console warning

Viewed 1552

My code is work fine but node is warning with this code:

<div id="info">
        <p> User:<b> {show.firstName} {show.lastName} </b></p>
        <textarea value={show.description}> </textarea>
        <p> Adress:<b> {show.address.streetAddress} </b></p>
</div>

Warning:

proxyConsole.js:56 Warning: Failed form propType: 
You provided a `value` prop to a form field without an `onChange` handler. 
This will render a read-only field. If the field should be mutable use `defaultValue`. 
Otherwise, set either `onChange` or `readOnly`. Check the render method of `Details`

if i change
<textarea value={show.description}> </textarea>

to

<textarea defaultValue={show.description}> </textarea>

or

<textarea> {show.description}</textarea>

i got error

If you supplydefaultValueon a <textarea>, do not pass children

It's ok ? Or may be i'm doing something wrong. I don't need handler to textarea

1 Answers
Related