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 bootstrap snippets bootdey">
<div class="row">
<h2 class="text-center text-primary">What our clients said about us?</h2>
<hr/>
<div class="col-md-10 col-md-offset-1">
<div class="row testimonials">
<div class="col-sm-4">
<blockquote>
<p class="clients-words">Hi there, We just bought bootdey is a nice gallery of free bootstrap snippets bootdey</p>
<span class="clients-name text-primary">— Amanda corey</span>
<img class="img-circle img-thumbnail" src="https://bootdey.com/img/Content/avatar/avatar1.png"/>
</blockquote>
</div>
<div class="col-sm-4">
<blockquote>
<p class="clients-words">Awesome Bootstrap snippets! Check it out! </p>
<span class="clients-name text-primary">— Factory nn (@facnnteam)</span>
<img class="img-circle img-thumbnail" src="https://bootdey.com/img/Content/avatar/avatar2.png"/>
</blockquote>
</div>
<div class="col-sm-4">
<blockquote>
<p class="clients-words">Bootdey looks amazing, i copy paste my snippets for other users very easy, bootdey looks simple</p>
<span class="clients-name text-primary">— Big daniel mont</span>
<img class="img-circle img-thumbnail" src="https://bootdey.com/img/Content/avatar/avatar3.png"/>
</blockquote>
</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{
background:#ddd;
}
.testimonials blockquote {
position: relative;
background: white;
min-height: 150px;
margin-top: 20px;
margin-bottom: 100px;
border: 1px solid #ecedf1;
}
.testimonials blockquote:before {
content: '';
position: absolute;
bottom: -10px;
left: 50%;
margin-left: -10px;
border-top: 10px solid #ecedf1;
border-left: 10px solid transparent;
border-right: 10px solid transparent;
}
.testimonials blockquote:after {
content: '';
position: absolute;
bottom: -8px;
left: 50%;
margin-left: -9px;
border-top: 9px solid white;
border-left: 9px solid transparent;
border-right: 9px solid transparent;
}
.testimonials blockquote img {
height: 50px;
width: 50px;
position: absolute;
border: 1px solid #ecedf1;
background: white;
bottom: -65px;
left: 50%;
margin-left: -25px;
}
blockquote p.clients-words {
font-size: 14px;
}
span.clients-name {
font-size: 14px;
position: absolute;
bottom: 10px;
right: 10px;
}