Describe Your Question
Following this link, Build for Production | OHIF
The OHIF Viewer built ran without no problems.
And then I tried to create a react app, version 18.2.0, and tried to include the iframe in App.js like this,
import React from 'react';
const App = () => {
return (
<div>
{/* Other content */}
<iframe
src="../../Viewers/app/dist"
style={{ width: '100%', height: '500px', border: 'none' }}
/>
</div>
);
};
export default App;
But when i ran npm start, it ran without errors, but only showed a blank white screen.
Does anyone have any experience with iframe on react? Or could someone point me to some guide or tutorials for it?