This article enables you to integrate Facebook and Twitter share widgets to your react web applications. Each of social networking giants like Facebook and Twitter gives their own APIs which we can integrate to have Share/Likes feature enabled on our pages.
But here, lets see how we can use npm module react-share which make life easier by eliminating the individual consumption of Facebook or Twitter APIs.
But here, lets see how we can use npm module react-share which make life easier by eliminating the individual consumption of Facebook or Twitter APIs.
Install the npm module
Sample React Material Menu - This menu has Facebook and Twitter Share as menu items
With this code snippet, you can integrate Facebook and Twitter share into your pages with one go. react-share is npm module which provides not only Facebook and Twitter, it also gives other social interfaces like LinkedIn, Instagram etc.