Skip to content

Commit

Permalink
feat routes
Browse files Browse the repository at this point in the history
  • Loading branch information
gurambalavadze committed Jan 22, 2023
1 parent 039653c commit 1aee201
Show file tree
Hide file tree
Showing 9 changed files with 34 additions and 9 deletions.
Binary file added src/assets/image/img.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/image/img2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/image/img3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/image/img4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/image/img5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/image/img6.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions src/component/exlpore/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import React from 'react'

type Props = {}

function index({}: Props) {
return (
<div>index</div>
)
}

export default index
19 changes: 10 additions & 9 deletions src/index.tsx
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
import React from 'react';
import ReactDOM from 'react-dom/client';
import './index.css';
import App from './App';
import * as serviceWorkerRegistration from './serviceWorkerRegistration';
import reportWebVitals from './reportWebVitals';
import React from "react";
import ReactDOM from "react-dom/client";
import "./index.css";
import * as serviceWorkerRegistration from "./serviceWorkerRegistration";
import reportWebVitals from "./reportWebVitals";
import "@fontsource/inter";

import { RouterProvider } from "react-router-dom";
import {router} from './routes'
const root = ReactDOM.createRoot(
document.getElementById('root') as HTMLElement
document.getElementById("root") as HTMLElement
);

root.render(
<React.StrictMode>
<App />
<RouterProvider router={router} />
</React.StrictMode>
);

Expand Down
13 changes: 13 additions & 0 deletions src/routes/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import App from "../App";
import { createBrowserRouter } from "react-router-dom";
import Exlpore from "component/exlpore";
export const router = createBrowserRouter([
{
path: "/",
element: <App />,
},
{
path: "/exlpore",
element: <Exlpore />,
},
]);

0 comments on commit 1aee201

Please sign in to comment.