Home > OS >  how to share button add on react.js page
how to share button add on react.js page

Time:01-02

enter image description here

How to put a share button on the react.js page.Clicking on the share button will come on Facebook Gmail Another social site icone.

CodePudding user response:

You can try using the Modal Component from any library like react-bootstrap ,Material-UI or rsuite.

CodePudding user response:

Use reactjs-popup npm library.

Example :-

import React from 'react';
import Popup from 'reactjs-popup';

const PopupExample = () => (
  <Popup trigger={<button>Share</button>} position="right center">
    <div>Popup content here !!</div>
    <button>Facebook</button>
    <button>Gmail</button>
  </Popup>
);

Demo:- https://react-popup.elazizi.com/#demo

  • Related