Skip to content

Commit cb6ff76

Browse files
committed
feat : add playground route
1 parent 6553b03 commit cb6ff76

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

src/Playground.jsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
const Playground = () => {
2+
return (
3+
<div className="bg-slate-800 min-h-screen flex justify-center items-center text-white text-7xl">
4+
Playground
5+
</div>
6+
);
7+
};
8+
9+
export default Playground;

src/main.jsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@ import { createRoot } from 'react-dom/client'
33
import './index.css'
44
import App from './App.jsx'
55
import { BrowserRouter, Route, Routes } from 'react-router';
6+
import Playground from './Playground.jsx';
67

78
createRoot(document.getElementById('root')).render(
89
<StrictMode>
910
<BrowserRouter>
1011
<Routes>
1112
<Route path="/" element={<App />} />
13+
<Route path="/playground" element={<Playground />} />
1214
</Routes>
1315
</BrowserRouter>
1416
</StrictMode>

0 commit comments

Comments
 (0)