Skip to content

Commit

Permalink
dali-react-demo
Browse files Browse the repository at this point in the history
  • Loading branch information
summerhargrave committed Oct 7, 2022
1 parent e73277b commit c5faa8e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,24 @@ import logo from './logo.svg';
import './App.css';

function App() {
const name = "Summer";
let variable = "";
if (name === "Summer") {
variable = <p>This is Summer.</p>
}
let nameString = name === "Autumn" ? "This is Autumn!" : "This is not Autumn!";
const buttonClick = () => {
console.log("I clicked the button.")
}
return (
<div className="App">
<header className="App-header">
<img src={logo} className="App-logo" alt="logo" />
<p>
Edit <code>src/App.js</code> and save to reload.
</p>
{variable}
<p>Hi, my name is {name}.</p>
<a
className="App-link"
href="https://reactjs.org"
Expand All @@ -17,6 +28,7 @@ function App() {
>
Learn React
</a>
<button>Click me.</button>
</header>
</div>
);
Expand Down

0 comments on commit c5faa8e

Please sign in to comment.