Run effect upon mounting (lifecycle methods?)
i-am-the-slime opened this issue · 1 comments
i-am-the-slime commented
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?
i-am-the-slime commented
Just answered by @natefaubion on the chat:
Use ref
as shown in the TodoMVC example.