DEV Community

Discussion on: How to Force Re-Render a React Component & Should you do it?

ruppysuppy profile image
Tapajyoti Bose Author

Could you share an example snippet?

g100g profile image
Giorgio Aquino

Check this good article from Kent C. Dodds, the last part with a Counter example show how to use a key to reset a component telling React to unmount and mount the component.

To use with great responsibility in mind :)