DEV Community

Discussion on: Dependency cycle detected in React component index file

Collapse
 
kcouliba profile image
Coulibaly Daba Kevin

Hey Dan,

There are probably multiple solutions to tackle cyclic-dependencies. But maybe the render props technique could be appropriate. It would probably need some adjustments to fit your case, but it is a solution I sometimes use for problems of this kind.

I hope this helps.