diff --git a/src/App.css b/src/App.css index 70e8f87..f1452e2 100644 --- a/src/App.css +++ b/src/App.css @@ -3,7 +3,7 @@ } .App-logo { - height: 40vmin; + height: 3cm; pointer-events: none; } @@ -19,7 +19,7 @@ flex-direction: column; align-items: center; justify-content: center; - font-size: calc(10px + 2vmin); + font-size: xx-large; color: white; } diff --git a/src/App.js b/src/App.js index 8653aec..4c4e0f7 100644 --- a/src/App.js +++ b/src/App.js @@ -1,22 +1,72 @@ -import logo from './logo.svg'; -import './App.css'; +import logo from "./logo.svg"; +import "./App.css"; +import { useEffect, useState } from "react"; function App() { + let [count1, setCount] = useState(0); + let [count2, badCount] = useState(0); + const [data, setData] = useState(undefined); + useEffect(() => { + fetch("https://api.gethub.com/ussers/t-riku-hub") + .then((res) => res.json()) + .then((json) => setData(json)); + }, []); return (
- Welcome to
+ {
+ setCount(count1 + 1);
+ }}
+ >
+ 👍{count1}
+ {
+ badCount(count2 + 1);
+ }}
+ >
+ 👎{count2}
+ {}}
+ >
+ ボタンを押した回数:{count1 + count2}
+ {data.login} no dataWED
Community.
+ WED
Communityへようこそ