React must be present in scope where JSX is being used. <!--more--> When using JSX, <a /> expands to React.createElement("a"). if a React instance is not in scope, a runtime error would occur. ## Examples ### Bad practice ```jsx var Hello = <div>Hello {this.props.name}</div>; /* @jsx Foo.bar / var React …
Occurrences
There are 52 occurrences of this issue in the repository.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Description
React must be present in scope where JSX is being used. <!--more--> When using JSX,
<a />
expands toReact.createElement("a")
. if aReact
instance is not in scope, a runtime error would occur. ## Examples ### Bad practice ```jsx var Hello = <div>Hello {this.props.name}</div>; /* @jsx Foo.bar / var React …Occurrences
There are 52 occurrences of this issue in the repository.
See all occurrences on DeepSource → deepsource.io/gh/muacm/muacm_website/issue/JS-0464/occurrences/