Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

why we import react from react

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.

Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #import #react #react
ADD COMMENT
Topic
Name
6+6 =