Skip to content

Instantly share code, notes, and snippets.

@Hacking-NASSA-with-HTML
Created December 29, 2022 16:27
Show Gist options
  • Save Hacking-NASSA-with-HTML/ae0b2346a3f4e5243a911080ce47e01f to your computer and use it in GitHub Desktop.
Save Hacking-NASSA-with-HTML/ae0b2346a3f4e5243a911080ce47e01f to your computer and use it in GitHub Desktop.
App js React example
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