Archived
add bootstrap
This commit is contained in:
1 parent
f73f510771
commit
1f39168ecd
4 files changed
+21989
-19
No files matched your search
Generated
+21975
-18
File diff suppressed because it is too large.
Load diff
@@ -6,7 +6,9 @@
|
|||||||
"@testing-library/jest-dom": "^5.11.4",
|
"@testing-library/jest-dom": "^5.11.4",
|
||||||
"@testing-library/react": "^11.1.0",
|
"@testing-library/react": "^11.1.0",
|
||||||
"@testing-library/user-event": "^12.1.10",
|
"@testing-library/user-event": "^12.1.10",
|
||||||
|
"bootstrap": "^5.1.1",
|
||||||
"react": "^17.0.2",
|
"react": "^17.0.2",
|
||||||
|
"react-bootstrap": "^2.0.0-rc.0",
|
||||||
"react-dom": "^17.0.2",
|
"react-dom": "^17.0.2",
|
||||||
"react-router-dom": "^5.3.0",
|
"react-router-dom": "^5.3.0",
|
||||||
"react-scripts": "4.0.3",
|
"react-scripts": "4.0.3",
|
||||||
|
|||||||
+11
@@ -5,10 +5,21 @@ import {
|
|||||||
Route,
|
Route,
|
||||||
Link
|
Link
|
||||||
} from "react-router-dom";
|
} from "react-router-dom";
|
||||||
|
import Card from 'react-bootstrap/Card'
|
||||||
export default function App() {
|
export default function App() {
|
||||||
return (
|
return (
|
||||||
<Router>
|
<Router>
|
||||||
<div>
|
<div>
|
||||||
|
<Card style={{ width: '18rem' }}>
|
||||||
|
<Card.Body>
|
||||||
|
<Card.Title>Card Title</Card.Title>
|
||||||
|
<Card.Text>
|
||||||
|
Some quick example text to build on the card title and make up the bulk of
|
||||||
|
the card's content.
|
||||||
|
</Card.Text>
|
||||||
|
|
||||||
|
</Card.Body>
|
||||||
|
</Card>
|
||||||
{/* A <Switch> looks through its children <Route>s and
|
{/* A <Switch> looks through its children <Route>s and
|
||||||
renders the first one that matches the current URL. */}
|
renders the first one that matches the current URL. */}
|
||||||
<Switch>
|
<Switch>
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@ import React from "react";
|
|||||||
import ReactDOM from "react-dom";
|
import ReactDOM from "react-dom";
|
||||||
import "./index.scss";
|
import "./index.scss";
|
||||||
import App from "./App.js";
|
import App from "./App.js";
|
||||||
|
import 'bootstrap/dist/css/bootstrap.min.css';
|
||||||
ReactDOM.render(
|
ReactDOM.render(
|
||||||
<React.StrictMode>
|
<React.StrictMode>
|
||||||
<App />
|
<App />
|
||||||
|
|||||||
Reference in new issue
Block a user