Created
July 18, 2021 12:12
-
-
Save hackintoshrao/2ccad76cb5a7872ca4f108b6d6f38f40 to your computer and use it in GitHub Desktop.
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"; | |
const Hello = function(name) { | |
return ( | |
<div>Hello, {name}</div> | |
); | |
}; | |
const view = Hello("Will"); | |
const element = document.getElementById("app"); | |
ReactDOM.render(view, element); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment