Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

JSX syntax and HTML

// JSX syntax and HTML
// In the block of code we see the similarities between JSX syntax and HTML: they both use the angle bracket opening and closing tags (<h1> and </h1>).

// When used in a React component, JSX will be rendered as HTML in the browser.
const title = <h1>Welcome all!</h1>
Source by 127.0.0.1 #
 
PREVIOUS NEXT
Tagged: #JSX #syntax #HTML
ADD COMMENT
Topic
Name
2+2 =