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={() => {}}
/>

www.codegrepper.com
www.stackoverflow.com

how to put variable in string javascript


var myInt = 1
console.log(`my variable is ${myInt}`);
// my variable is 1

var myInt = 1
console.log("my variable is ${myInt}");
// my variable is 1

var myBool = true
console.log("my variable is ${(myBool) ? 'x' : 'y'}");
// my variable is x

var myNumberA, myNumberB = 3;
console.log("my variable is ${myNumberA * myNumberB}");
// my variable is 9

www.codegrepper.com
www.stackoverflow.com