const textAreaResized = () => { const handler = (e) => { const target = e.currentTarget; target.style.height = "auto"; target.style.height = `${target.scrollHeight}px`; }; return <textarea onChange={handler} />; };
const textAreaResized = () => { const handler = (e) => { const target = e.currentTarget; target.style.height = "auto"; target.style.height = `${target.scrollHeight}px`; }; return <textarea onChange={handler} />; };