Closed i-am-the-slime closed 5 years ago
How would I run some side effect once the DOM element has been created? new MDCRipple(document.querySelector('.cancel')); Can I just hook into some "on..." event?
new MDCRipple(document.querySelector('.cancel'));
Just answered by @natefaubion on the chat: Use ref as shown in the TodoMVC example.
ref
How would I run some side effect once the DOM element has been created?
new MDCRipple(document.querySelector('.cancel'));
Can I just hook into some "on..." event?