React - Element

About

An element is the return value of a component and is a node in the React tree (React DOM implementation).

Type

A component will return:

Feature

Immutable

React elements are immutable.

Once you create an element, you can't change its children or attributes. An element is like a single frame in a movie: it represents the UI at a certain point in time.

Property

Attribute

All DOM properties and attributes (including event handlers) should have a camelCased name

For example, the HTML attribute tabindex corresponds to the attribute tabIndex in React. The exception is aria-* and data-* attributes, which should be lowercased.

Attribute value

Concatenate in Jsx Example:

<g transform={"translate("+margin.left+",0)"} />

Management

Create

The only element that you needs to create inside React is a component. html react element are built-in element.

See component creation on how to create a component.

Render

Update

Loop

Documentation / Reference


Powered by ComboStrap