3). What is JSX ? Why We Use JSX ?

      

  •    JSX stands for JavaScript XML.


  •    JSX allows us to write HTML in React.


  •    JSX makes it easier to write and add HTML in React.


  •    JSX allows us to
    write HTML elements in JavaScript and place them in the       DOM without any createElement() 
    and/or appendChild() methods.


  •    JSX converts HTML tags into react elements.

          

   Example


                                 Step 1 ) create a file Header.js


    

Step 2) import and render Header.js




Step 3) 'NPM Start'  to View Result in Browser

                




Comments

Popular posts from this blog

02_What_is_Babel_in_React_Js ?