Skip to content

Commit

Permalink
refactor: App.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
ChloeMouret committed Nov 24, 2023
1 parent dd13d94 commit 3b9976c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import reactLogo from './assets/react.svg'
import viteLogo from '/vite.svg'
import './App.css'

function App() {
export const App = (): JSX.Element => {
const [count, setCount] = useState(0)

return (
Expand Down Expand Up @@ -32,4 +32,4 @@ function App() {
)
}

export default App

2 changes: 1 addition & 1 deletion src/main.tsx
Original file line number Diff line number Diff line change
@@ -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(
Expand Down

0 comments on commit 3b9976c

Please sign in to comment.