React: OG Meta tag. Image is not showing - reactjs

I have used react-helmet for open graph image tags. But FB is not showing any image on link sharing. Does anyone know how to solve this issue without server-side rendering? Thanks in advance.

Related

How can I send a react component as an input to html2canvas and jsPdf?

I have a webpage I made in React. It renders some charts. The charts will appear slightly differently depending if the user is viewing the page on desktop or mobile.
I have used html2canvas and jsPDF to export the page to PDF. The problem is that I ALWAYS want to export the charts in the format seen in mobile view.
I have thought of the following:
rendering the mobile view inside a div with display set to none and using that div as the input to html2canvas. This does not work. I get an error.
Trying the above, but instead of using the hidden div, just send the div as the input to html2canvas inline. I do not know if you can even do this.
Using React-pdf to output the pdf. The problem here is that I do not know how to embed the charts when using react-pdf.
Does anyone have an idea of what I can try?
Thank you.

bootstrap issue with instagram embed in react

I am trying to embed instagram posts onto my page with a masonry grid (using card-columns). But somehow the leftmost posts don't show up.
Please refer to below sandbox.
https://codesandbox.io/s/nifty-solomon-ub8ro?file=/src/App.js
Edit:
on full browser tab: https://ub8ro.csb.app/ (you can see the issue here)

PDF view on ReactJs

I am new to ReactJs. I have tried multiple pdf plugins on ReactJs. But I am unable to show as I want. If anybody has used WPS Office you can see the mobile view option on pdf. So how to do make a dynamic mobile view option for pdf?
Any suggestion would help. Thanks.

svg sprite load with webpack and react

Hi I am using svg sprite I created using icons8 website for all my website icons, and the icons are working but it seems that the website loads them more than once per page (if i open the network tab i can see it loaded twice or more). I have been looking for a solution for a while now and I cant seem to find the cause of this.
I work with react so I have a component for Icon which uses the tag with xlinkHref attribute.
did anyone encounter such behavior? if yes what would be the best way to approach a solution?

Angular UI Modal is opening under the IFrame with a PDF inside

I have this issue here with the IE/Safari browsers, I have an IFrame with a PDF as it's content, and when i try to show a modal dialog it opens under the IFrame not above it, I tried to change the IFrame z-index/Position with no luck, and it seems to be an issue with the PDF plugin itself because I can see the IFrame borders behind the modal dialog
Any suggestions would be much appreciated :)
I have an update:
Ok, I am now positive that this is a PDF plugin issue not the IFrame, the IE put the PDF on top and no other component is allowed to overlay it
While i was searching I came a cross the PDF.js, it's very nice and doesn't rely in the browser PDF plugin, the only issue is that you cannot give it a stream to display!!! you have to provide a path to the PDF file on your server, which won't work for me
will keep you guys posted :)
I've ended up using the ViewerJS plugin to view the pdf documents inside the IFrame, it's very simple and you can embed it in your application, mine was MVC, you also can pass a stream or an url to your document, here is the link for their website, forgot to mention that it's for free :)
http://viewerjs.org/

Resources