DEV Community

john
john

Posted on

1 1

What is React must be in scope??

what is the use of import React from 'react'

Every React component is compiled into React.createElement('tagName',{props},value)
if React is not imported then it will show an error 'React must be in scope'

Top comments (1)

Collapse
 
johnbabu021 profile image
john

Sorry i forget to mention about Eslint
Thanks for the comment

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more