DOM props and forms

data-* attributes

Attach application-specific string metadata to a host element. These attributes appear in the DOM and are not private storage. Use React props or state for component logic; do not use data attributes to store secrets.

Formal Syntax & Structure

react syntaxreact
data-status="ready"

Working Example

Example Snippetreact
export default function App() { return <p data-status='ready'>Tool ready</p>; }
React Reference