showing results for - "how to put instagram post in react app"
Davide
05 May 2020
1
2// Run the following command to install
3// $ npm i react-instagram-embed
4
5import InstagramEmbed from 'react-instagram-embed';
6 
7<InstagramEmbed
8  url='https://instagr.am/p/Zw9o4/'
9  maxWidth={320}
10  hideCaption={false}
11  containerTagName='div'
12  protocol=''
13  injectScript
14  onLoading={() => {}}
15  onSuccess={() => {}}
16  onAfterRender={() => {}}
17  onFailure={() => {}}
18/>