Skip to content

Instantly share code, notes, and snippets.

@react-ram
Created November 24, 2019 17:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save react-ram/b6a89426eed10873fe0ae0a83e3464c2 to your computer and use it in GitHub Desktop.
Save react-ram/b6a89426eed10873fe0ae0a83e3464c2 to your computer and use it in GitHub Desktop.
Basics - Introducing JSX - Example 1
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