Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add button at bottom screen #43

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions git/qihong-wu.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
2027
Computer Science
Fast and Furious: Hobbs and Shaw
Best action and humor movie
11 changes: 11 additions & 0 deletions react/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,24 @@ import React, { useState } from "react";
import "./App.css";
import nerLogo from "./NER-Logo-App-Icon.svg";
import logo from "./logo.svg";
import { click } from "@testing-library/user-event/dist/click";

function App() {
const [original, setOriginal] = useState(false);
const [clicks, setClicks] = useState(0);

const onSwitchClicked = () => {
setOriginal(!original);
};

const increment = () => {
setClicks(clicks+1);
}

return (
<div className="App">
<header className="App-header">
<header>Qihong Wu</header>
{original ? (
<img src={logo} className="App-logo" alt="logo" />
) : (
Expand All @@ -30,6 +37,10 @@ function App() {
<button onClick={onSwitchClicked} className={"App-logo-button"}>
Switch Logo
</button>
<button onClick={increment}>
click: {clicks}
</button>

</header>
</div>
);
Expand Down