Keep a React component mounted

from blog Vladimir Klepov as a Coder, | ↗ original
The second most important React optimization technique after shouldComponentUpdate and friends is remount management. Some portions of the UI can be hidden or shown — sidebars, drop-down menus, modals and draggable widgets are all prominent examples. The basic React pattern for conditional rendering is boolean short-circuiting: {condition &&...