Open
Description
Hello ! I want to use react-file-viewer, but i have an error when I build my project 👍
export default class ViewerYes extends React.Component<Props, State>{
const file = './yes.png'
const type = 'png'
public render() {
return (
<div>
<FileViewer
fileType={type}
filePath={file}
errorComponent={CustomErrorComponent}
/>
</div>
)
}
}
And I call the component in a parent component like this :
<ViewerYes/>
Do you have a solution about this issue ?
Thank you