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 rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/MaterialDesign-Webfont/5.3.45/css/materialdesignicons.min.css" integrity="sha256-nwNjrH7J9zS/Ti4twtWX7OsC5QdQHCIKTv5cLMsGo68=" crossorigin="anonymous" />
<div class="container">
<div class="row justify-content-center">
<div class="col-lg-8 col-md-10 col-12">
<h5 class="mt-4"> <span class="p-2 bg-light shadow rounded text-success"> Version 1.3.8</span> - 4th Jun 2020</h5>
<ul class="list-unstyled mt-3">
<li class="text-muted ml-3"><i class="mdi mdi-circle-medium mr-2"></i>Latest Update Bootstrap v4.5</li>
<li class="text-muted ml-3"><i class="mdi mdi-circle-medium mr-2"></i>Latest Update jQuery v3.5.1</li>
<li class="text-muted ml-3"><i class="mdi mdi-circle-medium mr-2"></i>Latest Update Material Design Icons v5.3.45</li>
<li class="text-muted ml-3"><i class="mdi mdi-circle-medium mr-2"></i>New <b>RTL Version</b> (Only CSS Base)</li>
<li class="text-muted ml-3"><i class="mdi mdi-circle-medium mr-2"></i>New <b>Dark Version</b> (Only CSS Base)</li>
<li class="text-muted ml-3"><i class="mdi mdi-circle-medium mr-2"></i>New <b>Dark RTL Version</b> (Only CSS Base)</li>
<li class="text-muted ml-3"><i class="mdi mdi-circle-medium mr-2"></i>Added 6 Colors scheme</li>
<li class="text-muted ml-3"><i class="mdi mdi-circle-medium mr-2"></i>Fixed some responsive issues</li>
</ul>
<h5 class="mt-4"> <span class="p-2 bg-light shadow rounded text-success"> Version 1.3.0</span> - 28t May 2020</h5>
<ul class="list-unstyled mt-3">
<li class="text-muted ml-3"><i class="mdi mdi-circle-medium mr-2"></i>Latest Update Material Design Icons v5.3.45</li>
<li class="text-muted ml-3"><i class="mdi mdi-circle-medium mr-2"></i>New <b>RTL Version</b> (Only CSS Base)</li>
<li class="text-muted ml-3"><i class="mdi mdi-circle-medium mr-2"></i>New <b>Dark Version</b> (Only CSS Base)</li>
<li class="text-muted ml-3"><i class="mdi mdi-circle-medium mr-2"></i>New <b>Dark RTL Version</b> (Only CSS Base)</li>
<li class="text-muted ml-3"><i class="mdi mdi-circle-medium mr-2"></i>Added 6 Colors scheme</li>
<li class="text-muted ml-3"><i class="mdi mdi-circle-medium mr-2"></i>Fixed some responsive issues</li>
</ul>
<h5 class="mt-4"> <span class="p-2 bg-light shadow rounded text-success"> Version 1.0.0</span> - 4th March, 2020</h5>
<ul class="list-unstyled mt-3">
<li class="text-muted ml-3"><i class="mdi mdi-circle-medium mr-2"></i>Initial Released</li>
</ul>
<div class="mt-4">
<a href="#/" class="btn btn-primary">Purchase Now</a>
</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;}
.text-muted {
color: #8492a6 !important;
}