DEV Community

loading...

Discussion on: Your next React Modal with your own "useModal" Hook & Context API.

Collapse
tomliem profile image
tomliem

Hello, i'm trying to use this. But with eslint no-cycle, i can't use this pattern, because there Modal import in context, and context import in Modal.
How can i use this approach without moving Modal inside provider?