GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — ReactApp/10-JSX-expression.js at master · bappasahabapi/ReactApp

Expand file tree

/

10-JSX-expression.js

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
21 lines (17 loc) · 577 Bytes
/

10-JSX-expression.js

Copy path

File metadata and controls

21 lines (17 loc) · 577 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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.