Skip to content

Commit

Permalink
removed boilerplate
Browse files Browse the repository at this point in the history
  • Loading branch information
SyedMSawaid committed Oct 23, 2024
1 parent f0df66f commit be59f9e
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 145 deletions.
42 changes: 0 additions & 42 deletions src/App.css

This file was deleted.

28 changes: 1 addition & 27 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,33 +1,7 @@
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);

return (
<>
<div>
<a href="https://vite.dev" target="_blank">
<img src={viteLogo} className="logo" alt="Vite logo" />
</a>
<a href="https://react.dev" target="_blank">
<img src={reactLogo} className="logo react" alt="React logo" />
</a>
</div>
<h1>Vite + React</h1>
<div className="card">
<button onClick={() => setCount((count) => count + 1)}>
count is {count}
</button>
<p>
Edit <code>src/App.tsx</code> and save to test HMR
</p>
</div>
<p className="read-the-docs">
Click on the Vite and React logos to learn more
</p>
<div>Mukalma</div>
</>
);
}
Expand Down
1 change: 0 additions & 1 deletion src/assets/react.svg

This file was deleted.

68 changes: 0 additions & 68 deletions src/index.css

This file was deleted.

13 changes: 6 additions & 7 deletions src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import './index.css'
import App from './App.tsx'
import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import App from "./App.tsx";

createRoot(document.getElementById('root')!).render(
createRoot(document.getElementById("root")!).render(
<StrictMode>
<App />
</StrictMode>,
)
</StrictMode>
);

0 comments on commit be59f9e

Please sign in to comment.