📌  相关文章
📜  为什么我们从 react 导入 react - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:45.129000             🧑  作者: Mango

代码示例3
Q. Why we import React from 'react'?
  
Ans: When you are trying to use jsx in your javascript file your normal compiler as well as 
even babel could not understand it. Although normal compiler never understand it. But anyhow 
you want to say your compiler I am providing you a jsx in the file.