That’s all we can say right now.
The React
object contains many objects that are referenced indirectly when expanding JSX.
When using JSX, <a />
expands to React.createElement("a")
.
Therefore React
must be imported.
const Hello = <div>Hello {this.props.name}</div>;
import React from 'react';
const Hello = <div>Hello {this.props.name}</div>;