reactjs - How To Do onRendered Template like on Meteor React's Component -


i show canvas on template rendered using react component. know in blaze's style perform like,

template.test.onrendered = function(){     // draw canvas } 

how call canvas onrendered if using component?

i believe you're looking componentdidmount(). meteor chef has few blog posts on blog. here's link 1 of first react walkthroughs.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -