React HTML select element onChange function, trying to access 'event.target.value'

后端 未结 2 694
花落未央
花落未央 2021-01-28 19:05

When using a controlled HTML setPropA(e.target.value)} > ); } ReactDOM.render(, document.getElementById('root'));

Much easier to read, understand, and maintain IMO.

提交回复
热议问题