Cannot use my own textarea
https://github.com/andreypopp/react-textarea-autosize/blob/master/src/index.js#L82
Instead of rendering a <textarea /> this library should render children where the default props is a textarea with values.
This would give users who use this library more control if they wanted it with no downsides, it would not break existing users.
For example if I wanted to use Rebass TextArea then I would be able to specify my own text area element instead. At the moment this is impossible.
Problem with your suggested approach is that we need to obtain DOM ref to getComputedStyle out of textarea.
Not sure I follow you. Is what you are saying related to the calculateNodeHeight.js file? Can you tell me which part and why?