GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — ReactApp/10-JSX-expression.js at master · bappasahabapi/ReactApp Expand file tree/ Copy path10-JSX-expression.jsMore file actions 21 lines (17 loc) · 577 Bytes / Copy path10-JSX-expression.jsFile metadata and controls21 lines (17 loc) · 577 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 import React from 'react'; import ReactDOM from 'react-dom'; const fname = 'bappa saha'; ReactDOM.render( <> <h1> --------------JSX expression in react--------</h1> <h3> My first name is fname </h3> <h3> My first name is {fname} </h3> <p> My lucky number is 7 </p> <p> My lucky number is 4+3 </p> <p> My lucky number is = {4+3} </p> <p> The Mathe.random() is = {Math.random()} </p> <p> The squre root of 2 is = {Math.sqrt(2)} </p> </>, document.getElementById('root') ); /* we use inside the { }, in Expression not Statement*/ |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |