1It's just a tool to make it easier for you to use it! If you are
2interested in using React without JSX you can check out the docs. ...
3createElement calls, you can see where React is used. If you forget to
4import React, it will be undefined and the createElement call will fail.
5
1Q. Why we import React from 'react'?
2
3Ans: When you are trying to use jsx in your javascript file your normal compiler as well as
4even babel could not understand it. Although normal compiler never understand it. But anyhow
5you want to say your compiler I am providing you a jsx in the file.
6
7