import React from 'react'; import ReactDOM from 'react-dom'; import TextareaAutosize from '../src'; class Example extends React.Component { textareaStyle = { width: 300, padding: '10px 8px', border: '1px solid rgba(39, 41, 43, .15)', borderRadius: 4, fontSize: 15 } onResize = (event) => { console.log(event); // eslint-disable-line no-console } render() { return (

{'Plain ""'}

Minimum height is 3 "rows"

Maximum height is 3 "rows"

Prefilled with initial value

{'You can compare with this normal react "