State
Hide versus unmount
A hidden wrapper can retain its mounted children; conditional removal discards their local state.
Formal Syntax & Structure
react syntaxreact
<div hidden={hidden}>{mounted && <Note />}</div>Working Example
Example Snippetreact
<div hidden={!visible}><NoteEditor /></div>