Andarist / react-textarea-autosize

<textarea /> component for React which grows with content

Home Page:http://andarist.github.io/react-textarea-autosize/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

react-textarea-autosize depends on use-isomorphic-layout-effect, which does not have react 18 peerDependency yet

alevantana opened this issue · comments

use-isomorphic-layout-effect supports react 18 in version 1.1.2

But react-textarea-autosize depends on use-isomorphic-layout-effect@1.1.1 via use-latest@1.2.1. So when react-textarea-autosize is used in a react 18 project, there is a react peer dependency error in console for use-isomorphic-layout-effect.

Would it be possible to update the use-isomorphic-layout-effect dependency in use-latest and react-textarea-autosize please?

This has been fixed since use-isomorphic-layout-effect@1.1.2 includes React 18 in its peer dep range