0 votes
in ReactJS by
Why do you need additional care for component libraries while using forward refs in ReactJS?

1 Answer

0 votes
by

When you start using forwardRef in a component library, you should treat it as a breaking change and release a new major version of your library. This is because your library likely has a different behavior such as what refs get assigned to, and what types are exported. These changes can break apps and other libraries that depend on the old behavior.

...