Answers for "how to put instagram post in react app"

1

how to put instagram post in react app

// Run the following command to install
// $ npm i react-instagram-embed

import InstagramEmbed from 'react-instagram-embed';
 
<InstagramEmbed
  url='https://instagr.am/p/Zw9o4/'
  maxWidth={320}
  hideCaption={false}
  containerTagName='div'
  protocol=''
  injectScript
  onLoading={() => {}}
  onSuccess={() => {}}
  onAfterRender={() => {}}
  onFailure={() => {}}
/>
Posted by: Guest on October-18-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language