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>
<link href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css" rel="stylesheet"/>
<div class="container bootstrap snippets bootdey">
<div class="col-md-9">
<div class="row">
<div class="col-md-4 col-sm-5">
<div class="thumbnail">
<img src="https://bootdey.com/img/Content/User_for_snippets.png" alt="Profile Picture"/>
</div>
<br/>
<div class="list-group">
<a href="#/" class="list-group-item">
<i class="fa fa-asterisk"></i> Activity Feed
<i class="fa fa-chevron-right list-group-chevron"></i>
</a>
<a href="#/" class="list-group-item">
<i class="fa fa-book"></i> Projects
<i class="fa fa-chevron-right list-group-chevron"></i>
<span class="badge">3</span>
</a>
<a href="#/" class="list-group-item">
<i class="fa fa-envelope"></i> Messages
<i class="fa fa-chevron-right list-group-chevron"></i>
</a>
<a href="#/" class="list-group-item">
<i class="fa fa-group"></i> Friends
<i class="fa fa-chevron-right list-group-chevron"></i>
<span class="badge">7</span>
</a>
<a href="#/" class="list-group-item">
<i class="fa fa-cog"></i> Settings
<i class="fa fa-chevron-right list-group-chevron"></i>
</a>
</div>
</div>
<div class="col-md-8 col-sm-7">
<h2>Marktingk HGuoward</h2>
<h4>Visual, UI, UX Designer</h4>
<hr/>
<p>
<a href="#/" class="btn btn-success">Follow Marktingk</a>
<a href="#/" class="btn btn-info">Send Message</a>
</p>
<hr/>
<ul class="icons-list">
<li><i class="icon-li fa fa-envelope"></i> [email protected]</li>
<li><i class="icon-li fa fa-globe"></i> jumstartthemes.com</li>
<li><i class="icon-li fa fa-map-marker"></i> Las Vegas, NV</li>
</ul>
<br/>
<p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aenean commodo ligula eget dolor. Aenean massa. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Donec quam felis, ultricies nec.</p>
<hr/>
</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;}
.icons-list{
list-style-type: none;
}