react
react copied to clipboard
Utils should be exported
Problem statement
Right now many consumers use our utils functions. They do so because the utils are available, but not via a nice path.
For example this search (employees only) shows a few callsites of people importing ForwardRefComponent and useIsomorphicLayoutEffect.
Proposed solution
We expose utils as a proper path, with re-exports, so one can write, for example:
import type {ForwardRefComponent} from '@primer/react/utils'
as opposed to the current:
import type {ForwardRefComponent} from '@primer/react/lib-esm/utils/polymorphic'
👋 Hi, I noticed the associated PR for this issue was closed in favor of #4513. Does that resolve this issue, or is there more work to be discussed here?