javascript - How do you remount a component in reactjs? -


i have component need re-mount. need destroy , make it's code re-execute appear again on page.

what i've tried: https://groups.google.com/forum/#!topic/reactjs/8jgclu9jol0 put key="1" , javascript changed key else, did not remount

unmounting react.js node won't work because component rendered.

please help, how do this?

use unmountcomponentatnode destroy component , work rendered components , call rendercomponent on again, re-execute it's code , create new instance.

not sure if there's other way.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -