I am using React JS in Laravel, I created one functional component with JSX extension file and trying to use simple variable but unable to use that in HTML tag.
import React from 'react';
//functional component
const HeaderComp = () => {
const MIX_APP_URL = process.env.MIX_APP_URL;
console.log(MIX_APP_URL);//here working fine
return (
<header>
{/*Here not working*/}
<img src="{MIX_APP_URL}" className="img img-fluid" />
</header>
);
};