React DOM integration

Portal events

React event propagation follows the React tree, even when the physical DOM placement differs.

Formal Syntax & Structure

react syntaxreact
<button onClick={e => e.stopPropagation()}>Local</button>

Working Example

Example Snippetreact
<button onClick={e => e.stopPropagation()}>Local</button>
React Reference