STEP-10 SocialShare Component Development

And we ready to develop our SocialShare component

STEP-10

  1. We need to add react share package, for that modifying your extension package.json

scandipwa/packages/scandipwa-socialshare/package.json
{
   "name": "scandipwa-socialshare",
   "version": "0.0.1",
   "license": "OSL-3.0",
   "scandipwa": {
       "type": "extension"
   },
   "dependencies": {
       "react-share": "4.4.0"
   },
   "eslintConfig": {
       "extends": "@scandipwa"
   }
}

2. Run npm install at theme folder, in order to pull packages, then restart frontend

3. Create SocialShare.config.js in SOURCE/component/SocialShare

4. Modify SocialShare.component.js

5. Modify SocialShare.style.scss

6. Go to you Frontend and check the result

Mobile

Desktop

Last updated

Was this helpful?