Created
December 29, 2022 16:27
-
-
Save Hacking-NASSA-with-HTML/ae0b2346a3f4e5243a911080ce47e01f to your computer and use it in GitHub Desktop.
App js React example
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 './App.css'; | |
function App() { | |
const title = 'Welcome to the blog!' | |
const likes = 50 | |
// const person = { name: 'Yoshi', age: 30 } | |
const link = "https://google.com" | |
return ( | |
<div className="App"> | |
<div className="content"> | |
<h1>{title}</h1> | |
<p>Liked {likes} times</p> | |
{/* <p>{person}</p> */} | |
<p>{10}</p> | |
<p>{"Hello, ninjas"}</p> | |
<p>{[1, 2, 3, 4, 5]}</p> | |
<p>{Math.random() * 10}</p> | |
<a href={link}>Google Site</a> | |
</div> | |
</div> | |
) | |
} | |
export default App |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment