Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 483 Bytes

File metadata and controls

10 lines (8 loc) · 483 Bytes
title innerHTML or textContent
order 2

These work the same as their property equivalent. Set a string and they will be set. Be careful!! Setting innerHTML with any data that could be exposed to an end user as it could be a vector for malicious attack. textContent while generally not needed is actually a performance optimization when you know the children will only be text as it bypasses the generic diffing routine.

<div textContent={state.text} />