diff --git a/src/App.tsx b/src/App.tsx index cd20136..1566c7e 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -1,34 +1,7 @@ -import { useState } from 'react' -import reactLogo from './assets/react.svg' -import './App.css' +import Message from './Message'; -function App() { - const [count, setCount] = useState(0) - - 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 -

-
- ) +function App(){ + return
} -export default App +export default App; \ No newline at end of file diff --git a/src/Message.tsx b/src/Message.tsx new file mode 100644 index 0000000..fcbba2d --- /dev/null +++ b/src/Message.tsx @@ -0,0 +1,10 @@ +//PascalCasing +function Message () { + //JSX + const name = 'Marx'; + if (name) + return

Hello {name}!

; + return

Hello World!

; +} + +export default Message; \ No newline at end of file