natefaubion/purescript-spork

Run effect upon mounting (lifecycle methods?)

i-am-the-slime opened this issue · 1 comments

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?

Just answered by @natefaubion on the chat:
Use ref as shown in the TodoMVC example.