Created
November 24, 2019 17:17
-
-
Save react-ram/b6a89426eed10873fe0ae0a83e3464c2 to your computer and use it in GitHub Desktop.
Basics - Introducing JSX - Example 1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from "react"; | |
import ReactDOM from "react-dom"; | |
//JSX | |
const name = "ramcharan"; | |
const element = <h1>hello {name}</h1>; | |
ReactDOM.render(element, document.getElementById("root")); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment