displaying my instagram posts react code example
Example: 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={() => {}}
/>