Last active
August 28, 2022 03:56
-
-
Save charisTheo/4a66299d442edfa693b369ce90f5d451 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var element = document.getElementById('example-element'); | |
var parentElement = element.parentElement; | |
var removedElement = parentElement.removeChild(element); // triggers reflow |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment