Skip to content
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 src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import { useState } from 'react'
import reactLogo from './assets/react.svg'
import viteLogo from '/vite.svg'
import './App.css'
import MyComponent from './MyComponent.jsx';

function App() {
const [count, setCount] = useState(0)
Expand All @@ -28,6 +29,9 @@ function App() {
<p className="read-the-docs">
Click on the Vite and React logos to learn more
</p>
<div>
<MyComponent />
</div>
</>
)
}
Expand Down
7 changes: 7 additions & 0 deletions src/MyComponent.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import React from "react";

const MyComponent = () => {
return <h1>Hello, World!</h1>;
};

export default MyComponent;