Formatted src directory using Prettier

This commit is contained in:
Yiqing Zhu 2023-06-08 12:20:45 +10:00
parent 94384664c2
commit cd743517e9
2 changed files with 13 additions and 13 deletions

View File

@ -1,10 +1,10 @@
import { useState } from 'react'
import reactLogo from './assets/react.svg'
import viteLogo from '/vite.svg'
import './App.css'
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)
const [count, setCount] = useState(0);
return (
<>
@ -18,7 +18,7 @@ function App() {
</div>
<h1>Vite + React</h1>
<div className="card">
<button onClick={() => setCount((count) => count + 1)}>
<button onClick={() => setCount(count => count + 1)}>
count is {count}
</button>
<p>
@ -29,7 +29,7 @@ function App() {
Click on the Vite and React logos to learn more
</p>
</>
)
);
}
export default App
export default App;

View File

@ -1,10 +1,10 @@
import React from 'react'
import ReactDOM from 'react-dom/client'
import App from './App.tsx'
import './index.css'
import React from 'react';
import ReactDOM from 'react-dom/client';
import App from './App.tsx';
import './index.css';
ReactDOM.createRoot(document.getElementById('root') as HTMLElement).render(
<React.StrictMode>
<App />
</React.StrictMode>,
)
);