Open alovegren opened 2 years ago
It would also be nice to be able to close the destroy modal using the ESC key or by clicking outside of the modal. We could use useEffect
to attach event handlers with vanilla JS but I'm not sure if there's a better practice for this specific thing.
Ideally there's not so much prop drilling (passing
repos
down fromApp
toRepoList
)... Probably just auseContext
hook will be plenty.