Skip to content

Commit

Permalink
feat: add prittierrc
Browse files Browse the repository at this point in the history
  • Loading branch information
itsKhadeer committed Jan 12, 2024
1 parent 6e7a058 commit 0b87581
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 11 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
"eslint-plugin-react-refresh": "^0.4.5",
"husky": "^8.0.3",
"postcss": "^8.4.33",
"prettier": "3.1.1",
"tailwindcss": "^3.4.1",
"typescript": "^5.2.2",
"vite": "^5.0.8"
Expand Down
24 changes: 13 additions & 11 deletions src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,17 @@
import { Suspense } from 'react'
import { BrowserRouter, Routes} from 'react-router-dom'
// import { Route } from 'react-router-dom'
import ReactDOM from 'react-dom/client'
import './index.css'
import { Suspense } from "react";
import { BrowserRouter, Routes } from "react-router-dom";
import { Route } from "react-router-dom";
import ReactDOM from "react-dom/client";
import "./index.css";
import Home from "./pages/Home/Home";

ReactDOM.createRoot(document.getElementById('root')!).render(
ReactDOM.createRoot(document.getElementById("root")!).render(
<Suspense fallback={<h1>Loading...</h1>}>
<BrowserRouter>
<Routes>
{/* add page routes here */}
</Routes>
</BrowserRouter>
<BrowserRouter>
<Routes>
<Route path="/" element={<Home />} />
{/* add routes here */}
</Routes>
</BrowserRouter>
</Suspense>,
);
11 changes: 11 additions & 0 deletions src/pages/Home/Home.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import React from "react";

const Home: React.FC = () => {
return (
<div>
<h1>Home Page</h1>
</div>
);
};

export default Home;
5 changes: 5 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1754,6 +1754,11 @@ prelude-ls@^1.2.1:
resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396"
integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==

[email protected]:
version "3.1.1"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.1.1.tgz#6ba9f23165d690b6cbdaa88cb0807278f7019848"
integrity sha512-22UbSzg8luF4UuZtzgiUOfcGM8s4tjBv6dJRT7j275NXsy2jb4aJa4NNveul5x4eqlF1wuhuR2RElK71RvmVaw==

punycode@^2.1.0:
version "2.3.1"
resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.3.1.tgz#027422e2faec0b25e1549c3e1bd8309b9133b6e5"
Expand Down

0 comments on commit 0b87581

Please sign in to comment.