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 bgcolor="#f6f6f6" style={{/*color: #333; height: 100%; width: 100%;*/}} height="100%" width="100%">
<table bgcolor="#f6f6f6" cellspacing="0" style={{/*border-collapse: collapse; padding: 40px; width: 100%;*/}} width="100%">
<tbody>
<tr>
<td width="5px" style={{/*padding: 0;*/}}></td>
<td style={{/*clear: both; display: block; margin: 0 auto; max-width: 600px; padding: 10px 0;*/}}>
<table width="100%" cellspacing="0" style={{/*border-collapse: collapse;*/}}>
<tbody>
<tr>
<td style={{/*padding: 0;*/}}>
<a
href="#/"
style={{/*color: #348eda;*/}}
target="_blank"
>
<img
src="//ssl.gstatic.com/accounts/ui/logo_2x.png"
alt="Bootdey.com"
style={{/*height: 50px; max-width: 100%; width: 157px;*/}}
height="50"
width="157"
/>
</a>
</td>
<td style={{/*color: #999; font-size: 12px; padding: 0; text-align: right;*/}} align="right">
Bootdey<br />
Invoice #3440952<br />
August 04, 2018
</td>
</tr>
</tbody>
</table>
</td>
<td width="5px" style={{/*padding: 0;*/}}></td>
</tr>
<tr>
<td width="5px" style={{/*padding: 0;*/}}></td>
<td bgcolor="#FFFFFF" style={{/*border: 1px solid #000; clear: both; display: block; margin: 0 auto; max-width: 600px; padding: 0;*/}}>
<table width="100%" style={{/*background: #f9f9f9; border-bottom: 1px solid #eee; border-collapse: collapse; color: #999;*/}}>
<tbody>
<tr>
<td width="50%" style={{/*padding: 20px;*/}}><strong style={{/*color: #333; font-size: 24px;*/}}>$23.95</strong> Paid</td>
<td align="right" width="50%" style={{/*padding: 20px;*/}}>Thanks for using <span class="il">Bootdey.com</span></td>
</tr>
</tbody>
</table>
</td>
<td style={{/*padding: 0;*/}}></td>
<td width="5px" style={{/*padding: 0;*/}}></td>
</tr>
<tr>
<td width="5px" style={{/*padding: 0;*/}}></td>
<td style={{/*border: 1px solid #000; border-top: 0; clear: both; display: block; margin: 0 auto; max-width: 600px; padding: 0;*/}}>
<table cellspacing="0" style={{/*border-collapse: collapse; border-left: 1px solid #000; margin: 0 auto; max-width: 600px;*/}}>
<tbody>
<tr>
<td valign="top" style={{/*padding: 20px;*/}}>
<h3
style={{/*
border-bottom: 1px solid #000;
color: #000;
font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;
font-size: 18px;
font-weight: bold;
line-height: 1.2;
margin: 0;
margin-bottom: 15px;
padding-bottom: 5px;
*/}}
>
Summary
</h3>
<table cellspacing="0" style={{/*border-collapse: collapse; margin-bottom: 40px;*/}}>
<tbody>
<tr>
<td style={{/*padding: 5px 0;*/}}>Old Plan</td>
<td align="right" style={{/*padding: 5px 0;*/}}>Free plan (10,000 msg/month)</td>
</tr>
<tr>
<td style={{/*padding: 5px 0;*/}}>New Plan</td>
<td align="right" style={{/*padding: 5px 0;*/}}>Concept Plan</td>
</tr>
<tr>
<td style={{/*padding: 5px 0;*/}}>Prorated subscription amount due</td>
<td align="right" style={{/*padding: 5px 0;*/}}>$23.95</td>
</tr>
<tr>
<td style={{/*border-bottom: 2px solid #000; border-top: 2px solid #000; font-weight: bold; padding: 5px 0;*/}}>Amount paid</td>
<td align="right" style={{/*border-bottom: 2px solid #000; border-top: 2px solid #000; font-weight: bold; padding: 5px 0;*/}}>$23.95</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
<td width="5px" style={{/*padding: 0;*/}}></td>
</tr>
<tr style={{/*color: #666; font-size: 12px;*/}}>
<td width="5px" style={{/*padding: 10px 0;*/}}></td>
<td style={{/*clear: both; display: block; margin: 0 auto; max-width: 600px; padding: 10px 0;*/}}>
<table width="100%" cellspacing="0" style={{/*border-collapse: collapse;*/}}>
<tbody>
<tr>
<td width="40%" valign="top" style={{/*padding: 10px 0;*/}}>
<h4 style={{/*margin: 0;*/}}>Questions?</h4>
<p style={{/*color: #666; font-size: 12px; font-weight: normal; margin-bottom: 10px;*/}}>
Please visit our
<a
href="#/"
style={{/*color: #666;*/}}
target="_blank"
>
Support Center
</a>
with any questions.
</p>
</td>
<td width="10%" style={{/*padding: 10px 0;*/}}> </td>
<td width="40%" valign="top" style={{/*padding: 10px 0;*/}}>
<h4 style={{/*margin: 0;*/}}><span class="il">Bootdey</span> Technologies</h4>
<p style={{/*color: #666; font-size: 12px; font-weight: normal; margin-bottom: 10px;*/}}>
<a href="#/">535 Mission St., 14th Floor San Francisco, CA 94105</a>
</p>
</td>
</tr>
</tbody>
</table>
</td>
<td width="5px" style={{/*padding: 10px 0;*/}}></td>
</tr>
</tbody>
</table>
</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;}