Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: Use ref to manipulate lightbox #10

Merged
merged 3 commits into from
Jul 11, 2024

Conversation

oluwatobiss
Copy link
Member

Use ref to access the lightbox element instead of the getElementById web API. This eliminates the need to use the state and effect hooks to show or hide the modal.

@oluwatobiss oluwatobiss added the enhancement New feature or request label Jul 11, 2024
@oluwatobiss oluwatobiss self-assigned this Jul 11, 2024
@oluwatobiss oluwatobiss merged commit 079ac26 into main Jul 11, 2024
2 checks passed
@oluwatobiss oluwatobiss deleted the refactor/use-refs-to-focus-lightbox branch July 11, 2024 14:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant