Skip to content

Commit

Permalink
Feat :: Router #1
Browse files Browse the repository at this point in the history
  • Loading branch information
kyumin7487 committed Jul 17, 2024
1 parent 72980f6 commit d6be15b
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
9 changes: 3 additions & 6 deletions baobao/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
import React from 'react';
import Provider from "src/components/Common/Provider";

function App() {
return (
<div className="App">

</div>
);
return <Provider/>;
}

export default App;
export default App;
12 changes: 12 additions & 0 deletions baobao/src/components/Router/router.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import React from "react";
import { Routes, Route } from "react-router-dom";
import Campaign from "src/components/campaign";

const Router = () => {
return (
<Routes>
<Route path="/" element={ <Campaign />} />
</Routes>
)
}
export default Router;

0 comments on commit d6be15b

Please sign in to comment.