-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:Dezenix/frontend-reactjs
- Loading branch information
Showing
10 changed files
with
3,498 additions
and
2,828 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,29 @@ | ||
import React from 'react' | ||
import { Login, Register } from 'dezenix-react' | ||
import { Login, Register, ProductCard } from 'dezenix-react' | ||
import Home from './components/Home' | ||
import { BrowserRouter, Route, Routes } from "react-router-dom"; | ||
import { BrowserRouter, Route, Routes } from 'react-router-dom' | ||
|
||
const App = () => { | ||
return ( | ||
<BrowserRouter> | ||
<Routes> | ||
<Route index element={<Home />} /> | ||
<Route path="/login" element={<Login />} /> | ||
<Route path="/register" element={<Register />} /> | ||
<Route path='/login' element={<Login />} /> | ||
<Route path='/register' element={<Register />} /> | ||
<Route | ||
path='/product_card' | ||
element={ | ||
<ProductCard | ||
img='https://i.ibb.co/SrRbQWb/img-1.png' | ||
title='Nike Jordan Air' | ||
price='$80' | ||
des='This is the best nike jordan air sneakers for basketball.' | ||
/> | ||
} | ||
/> | ||
</Routes> | ||
</BrowserRouter> | ||
); | ||
) | ||
} | ||
|
||
export default App |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.