From 2da8dad8db84c78066f2b6aa7044e00fcfda73a4 Mon Sep 17 00:00:00 2001 From: Masaya Tojo Date: Wed, 31 Jul 2024 23:53:43 +0900 Subject: SignUp.tsx を表示するように変更する MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.tsx | 35 ++++------------------------------- src/SignUp.tsx | 13 +++++++++++++ src/main.tsx | 2 +- 3 files changed, 18 insertions(+), 32 deletions(-) create mode 100644 src/SignUp.tsx diff --git a/src/App.tsx b/src/App.tsx index afe48ac..fa6d181 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,35 +1,8 @@ -import { useState } from 'react' -import reactLogo from './assets/react.svg' -import viteLogo from '/vite.svg' -import './App.css' - -function App() { - const [count, setCount] = useState(0) +import { SignUp } from './SignUp.tsx' +export const App = () => { return ( - <> -
- - Vite logo - - - React logo - -
-

Vite + React

-
- -

- Edit src/App.tsx and save to test HMR -

-
-

- Click on the Vite and React logos to learn more -

- - ) + + ); } -export default App diff --git a/src/SignUp.tsx b/src/SignUp.tsx new file mode 100644 index 0000000..58309a6 --- /dev/null +++ b/src/SignUp.tsx @@ -0,0 +1,13 @@ +export const SignUp = () => { + return ( +
+

hello, World

+
+ ); +} + + + + + + diff --git a/src/main.tsx b/src/main.tsx index 3d7150d..cabfbb3 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -1,6 +1,6 @@ import React from 'react' import ReactDOM from 'react-dom/client' -import App from './App.tsx' +import { App } from './App.tsx' import './index.css' ReactDOM.createRoot(document.getElementById('root')!).render( -- cgit v1.2.3