• Techblog369, India
  • September 29, 2022

How to create PHP QR code and Save it to Database?

Hi In this Article I am going to show how to create QR code and save it to database also fetch QR Code in a Table Create a Page addqrcode.php in …

How to Send Multiple Files Attachment Mail using Laravel

Hi in this article i am going to show how to send multiple files attachment mail in Laravel. It’s simple example of Laravel send multiple attachment in mail. I explained simply …

In this article, I am going to show how to integrate Whatsapp into ReactJs App

How to integrate Whatsapp in ReactJs App.

Create React Project
npx create-react-app you-app
Make a folder name components under the src root
Make a file named Whatsapp.js or you can give any name

Paste the below code

import React from 'react'

const Whatsapp = ()=> {
   return (
               href="https://wa.me/91+930000077/?text=Welcome to Techblog369 Team"
               body="hello world"
               rel="noopener noreferrer"
               <i class="fa fa-whatsapp whatsapp-icon"></i>

export default Whatsapp

Now we add some CSS for the Whatsapp button


 /* for desktop */
     .whatsapp_float {
         position: fixed;
         width: 60px;
         height: 60px;
         bottom: 40px;
         right: 40px;
         background-color: #25d366;
         color: #FFF;
         border-radius: 50px;
         text-align: center;
         font-size: 30px;
         box-shadow: 2px 2px 3px #999;
         z-index: 100;

     .whatsapp-icon {
         margin-top: 16px;

     /* for mobile */
     @media screen and (max-width: 767px) {
         .whatsapp-icon {
             margin-top: 10px;

         .whatsapp_float {
             width: 40px;
             height: 40px;
             bottom: 20px;
             right: 10px;
             font-size: 22px;

Now import Whatsapp to App.js file below the footer section


import Whatsapp from "./components/Whatsapp";

  <div className="pages">
         <Route exact path="/" component={Home} />
         <Redirect to="/" />
       <Footer />
       <Whatsapp />



Leave a Reply

Your email address will not be published.