1. First, we need fresh reactjs setup, and for that, we need to run below commands into out terminal, and also we should have latest node version installed on our system:
npx create-react-app my-awesome-project
cd my-awesome-project
npm start
2. Now we need to run below commands into our project terminal to get bootstrap and related modules into our reactjs application:
npm install [email protected] --save
npm start //For start project again
3. Finally for the main output, we need to add below code into our my-awesome-project/src/App.js file or if you have fresh setup then you can replace my-awesome-project/src/App.js file code with below code:
import React from 'react';
import './App.css';
import 'bootstrap/dist/css/bootstrap.min.css';
function App() {
return (
<div>
<div class="container pb-5 mb-sm-2">
<div class="row no-gutters">
<div class="col-lg-3 col-sm-4 col-6 category-card border border-collapse">
<div class="card border-0">
<a class="d-block" href="#/"><img class="d-block" src="https://www.bootdey.com/image/340x232/FF8C00/000000" alt="Computers & Accessories"/></a>
<div class="card-body pb-2">
<h2 class="h6 mb-2">Computers & Accessories</h2><span class="d-block mb-3 font-size-xs text-muted">Starting from <span class="font-weight-semibold">$149.80</span></span>
<div class="list-group list-group-flush font-size-sm"><a class="list-group-item list-group-item-action" href="#/">Laptops & Tablets<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right ml-1" style={{/*width: .875rem; height: .875rem;*/}}><polyline points="9 18 15 12 9 6"></polyline></svg></a><a class="list-group-item list-group-item-action" href="#/">Desktop Computers<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right ml-1" style={{/*width: .875rem; height: .875rem;*/}}><polyline points="9 18 15 12 9 6"></polyline></svg></a><a class="list-group-item list-group-item-action" href="#/">Computer Accessories<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right ml-1" style={{/*width: .875rem; height: .875rem;*/}}><polyline points="9 18 15 12 9 6"></polyline></svg></a><a class="list-group-item list-group-item-action" href="#/">Computer Components<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right ml-1" style={{/*width: .875rem; height: .875rem;*/}}><polyline points="9 18 15 12 9 6"></polyline></svg></a><a class="list-group-item list-group-item-action" href="#/">Networking Products<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right ml-1" style={{/*width: .875rem; height: .875rem;*/}}><polyline points="9 18 15 12 9 6"></polyline></svg></a></div>
</div>
</div>
</div>
<div class="col-lg-3 col-sm-4 col-6 category-card border border-collapse">
<div class="card border-0">
<a class="d-block" href="#/"><img class="d-block" src="https://www.bootdey.com/image/340x232/7B68EE/000000" alt="TV, Video & Audio"/></a>
<div class="card-body pb-2">
<h2 class="h6 mb-2">TV, Video & Audio</h2><span class="d-block mb-3 font-size-xs text-muted">Starting from <span class="font-weight-semibold">$78.00</span></span>
<div class="list-group list-group-flush font-size-sm"><a class="list-group-item list-group-item-action" href="#/">Smart TV Sets<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right ml-1" style={{/*width: .875rem; height: .875rem;*/}}><polyline points="9 18 15 12 9 6"></polyline></svg></a><a class="list-group-item list-group-item-action" href="#/">Blue-Ray Players<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right ml-1" style={{/*width: .875rem; height: .875rem;*/}}><polyline points="9 18 15 12 9 6"></polyline></svg></a><a class="list-group-item list-group-item-action" href="#/">Sound Systems<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right ml-1" style={{/*width: .875rem; height: .875rem;*/}}><polyline points="9 18 15 12 9 6"></polyline></svg></a><a class="list-group-item list-group-item-action" href="#/">Home Theaters<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right ml-1" style={{/*width: .875rem; height: .875rem;*/}}><polyline points="9 18 15 12 9 6"></polyline></svg></a></div>
</div>
</div>
</div>
<div class="col-lg-3 col-sm-4 col-6 category-card border border-collapse">
<div class="card border-0">
<a class="d-block" href="#/"><img class="d-block" src="https://www.bootdey.com/image/340x232/FA8072/000000" alt="Smartphones & Tablets"/></a>
<div class="card-body pb-2">
<h2 class="h6 mb-2">Smartphones & Tablets</h2><span class="d-block mb-3 font-size-xs text-muted">Starting from <span class="font-weight-semibold">$127.00</span></span>
<div class="list-group list-group-flush font-size-sm"><a class="list-group-item list-group-item-action" href="#/">Apple iPhones<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right ml-1" style={{/*width: .875rem; height: .875rem;*/}}><polyline points="9 18 15 12 9 6"></polyline></svg></a><a class="list-group-item list-group-item-action" href="#/">Android Smartphones<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right ml-1" style={{/*width: .875rem; height: .875rem;*/}}><polyline points="9 18 15 12 9 6"></polyline></svg></a><a class="list-group-item list-group-item-action" href="#/">Apple iPads<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right ml-1" style={{/*width: .875rem; height: .875rem;*/}}><polyline points="9 18 15 12 9 6"></polyline></svg></a><a class="list-group-item list-group-item-action" href="#/">Android Tablets<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right ml-1" style={{/*width: .875rem; height: .875rem;*/}}><polyline points="9 18 15 12 9 6"></polyline></svg></a><a class="list-group-item list-group-item-action" href="#/">Phablets<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right ml-1" style={{/*width: .875rem; height: .875rem;*/}}><polyline points="9 18 15 12 9 6"></polyline></svg></a></div>
</div>
</div>
</div>
<div class="col-lg-3 col-sm-4 col-6 category-card border border-collapse">
<div class="card border-0">
<a class="d-block" href="#/"><img class="d-block" src="https://www.bootdey.com/image/340x232/87CEFA/000000" alt="Cameras, Photo & Videos"/></a>
<div class="card-body pb-2">
<h2 class="h6 mb-2">Cameras, Photo & Video</h2><span class="d-block mb-3 font-size-xs text-muted">Starting from <span class="font-weight-semibold">$210.00</span></span>
<div class="list-group list-group-flush font-size-sm"><a class="list-group-item list-group-item-action" href="#/">Photo Cameras<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right ml-1" style={{/*width: .875rem; height: .875rem;*/}}><polyline points="9 18 15 12 9 6"></polyline></svg></a><a class="list-group-item list-group-item-action" href="#/">Video Cameras<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right ml-1" style={{/*width: .875rem; height: .875rem;*/}}><polyline points="9 18 15 12 9 6"></polyline></svg></a><a class="list-group-item list-group-item-action" href="#/">Action Cameras<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right ml-1" style={{/*width: .875rem; height: .875rem;*/}}><polyline points="9 18 15 12 9 6"></polyline></svg></a><a class="list-group-item list-group-item-action" href="#/">Tripods & Stands<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right ml-1" style={{/*width: .875rem; height: .875rem;*/}}><polyline points="9 18 15 12 9 6"></polyline></svg></a><a class="list-group-item list-group-item-action" href="#/">Lenses<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right ml-1" style={{/*width: .875rem; height: .875rem;*/}}><polyline points="9 18 15 12 9 6"></polyline></svg></a></div>
</div>
</div>
</div>
<div class="col-lg-3 col-sm-4 col-6 category-card border border-collapse">
<div class="card border-0">
<a class="d-block" href="#/"><img class="d-block" src="https://www.bootdey.com/image/340x232/20B2AA/000000" alt="Headphones"/></a>
<div class="card-body pb-2">
<h2 class="h6 mb-2">Headphones</h2><span class="d-block mb-3 font-size-xs text-muted">Starting from <span class="font-weight-semibold">$35.99</span></span>
<div class="list-group list-group-flush font-size-sm"><a class="list-group-item list-group-item-action" href="#/">Earbud Headphones<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right ml-1" style={{/*width: .875rem; height: .875rem;*/}}><polyline points="9 18 15 12 9 6"></polyline></svg></a><a class="list-group-item list-group-item-action" href="#/">Over-Ear Headphones<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right ml-1" style={{/*width: .875rem; height: .875rem;*/}}><polyline points="9 18 15 12 9 6"></polyline></svg></a><a class="list-group-item list-group-item-action" href="#/">Bluetooth Headphones<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right ml-1" style={{/*width: .875rem; height: .875rem;*/}}><polyline points="9 18 15 12 9 6"></polyline></svg></a><a class="list-group-item list-group-item-action" href="#/">Sports & Fitness Headphones<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right ml-1" style={{/*width: .875rem; height: .875rem;*/}}><polyline points="9 18 15 12 9 6"></polyline></svg></a><a class="list-group-item list-group-item-action" href="#/">Noise-Cancelling Headphones<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right ml-1" style={{/*width: .875rem; height: .875rem;*/}}><polyline points="9 18 15 12 9 6"></polyline></svg></a></div>
</div>
</div>
</div>
<div class="col-lg-3 col-sm-4 col-6 category-card border border-collapse">
<div class="card border-0">
<a class="d-block" href="#/"><img class="d-block" src="https://www.bootdey.com/image/340x232/FF69B4/000000" alt="Wearable Electronics"/></a>
<div class="card-body pb-2">
<h2 class="h6 mb-2">Wearable Electronics</h2><span class="d-block mb-3 font-size-xs text-muted">Starting from <span class="font-weight-semibold">$79.50</span></span>
<div class="list-group list-group-flush font-size-sm"><a class="list-group-item list-group-item-action" href="#/">Smart Watches<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right ml-1" style={{/*width: .875rem; height: .875rem;*/}}><polyline points="9 18 15 12 9 6"></polyline></svg></a><a class="list-group-item list-group-item-action" href="#/">Fitness Trackers<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right ml-1" style={{/*width: .875rem; height: .875rem;*/}}><polyline points="9 18 15 12 9 6"></polyline></svg></a><a class="list-group-item list-group-item-action" href="#/">Smart Glasses<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right ml-1" style={{/*width: .875rem; height: .875rem;*/}}><polyline points="9 18 15 12 9 6"></polyline></svg></a></div>
</div>
</div>
</div>
<div class="col-lg-3 col-sm-4 col-6 category-card border border-collapse">
<div class="card border-0">
<a class="d-block" href="#/"><img class="d-block" src="https://www.bootdey.com/image/340x232/FF8C00/000000" alt="Printers & Ink"/></a>
<div class="card-body pb-2">
<h2 class="h6 mb-2">Printers & Ink</h2><span class="d-block mb-3 font-size-xs text-muted">Starting from <span class="font-weight-semibold">$54.00</span></span>
<div class="list-group list-group-flush font-size-sm"><a class="list-group-item list-group-item-action" href="#/">All-In-One<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right ml-1" style={{/*width: .875rem; height: .875rem;*/}}><polyline points="9 18 15 12 9 6"></polyline></svg></a><a class="list-group-item list-group-item-action" href="#/">Copying<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right ml-1" style={{/*width: .875rem; height: .875rem;*/}}><polyline points="9 18 15 12 9 6"></polyline></svg></a><a class="list-group-item list-group-item-action" href="#/">Faxing<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right ml-1" style={{/*width: .875rem; height: .875rem;*/}}><polyline points="9 18 15 12 9 6"></polyline></svg></a><a class="list-group-item list-group-item-action" href="#/">Photo Printing<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right ml-1" style={{/*width: .875rem; height: .875rem;*/}}><polyline points="9 18 15 12 9 6"></polyline></svg></a><a class="list-group-item list-group-item-action" href="#/">Printing Only<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right ml-1" style={{/*width: .875rem; height: .875rem;*/}}><polyline points="9 18 15 12 9 6"></polyline></svg></a><a class="list-group-item list-group-item-action" href="#/">Scanning<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right ml-1" style={{/*width: .875rem; height: .875rem;*/}}><polyline points="9 18 15 12 9 6"></polyline></svg></a></div>
</div>
</div>
</div>
<div class="col-lg-3 col-sm-4 col-6 category-card border border-collapse">
<div class="card border-0">
<a class="d-block" href="#/"><img class="d-block" src="https://www.bootdey.com/image/340x232/9932CC/000000" alt="Video Games"/></a>
<div class="card-body pb-2">
<h2 class="h6 mb-2">Video Games</h2><span class="d-block mb-3 font-size-xs text-muted">Starting from <span class="font-weight-semibold">$19.00</span></span>
<div class="list-group list-group-flush font-size-sm"><a class="list-group-item list-group-item-action" href="#/">PlayStation 4<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right ml-1" style={{/*width: .875rem; height: .875rem;*/}}><polyline points="9 18 15 12 9 6"></polyline></svg></a><a class="list-group-item list-group-item-action" href="#/">Xbox One<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right ml-1" style={{/*width: .875rem; height: .875rem;*/}}><polyline points="9 18 15 12 9 6"></polyline></svg></a><a class="list-group-item list-group-item-action" href="#/">Nintendo Switch<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right ml-1" style={{/*width: .875rem; height: .875rem;*/}}><polyline points="9 18 15 12 9 6"></polyline></svg></a><a class="list-group-item list-group-item-action" href="#/">Video Games<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right ml-1" style={{/*width: .875rem; height: .875rem;*/}}><polyline points="9 18 15 12 9 6"></polyline></svg></a><a class="list-group-item list-group-item-action" href="#/">Accessories<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right ml-1" style={{/*width: .875rem; height: .875rem;*/}}><polyline points="9 18 15 12 9 6"></polyline></svg></a></div>
</div>
</div>
</div>
</div>
</div>
</div>
);
}
export default App;
4. Now we need to add below code into our my-awesome-project/src/App.css file :
body{margin-top:20px;}
img, figure {
max-width: 100%;
height: auto;
vertical-align: middle;
}