charting-library-examples icon indicating copy to clipboard operation
charting-library-examples copied to clipboard

Example of a React App on a CDN

Open michaelkk opened this issue 5 years ago • 2 comments

  • React
  • https://reactjs.org

Hey everyone! I'm wondering regarding hosting charting library on some static server (like CDN).

I wrote my app using create-react-app template as in the example. And wanted to server static files somewhere on another subdomain (it's quite easy customising PUBLIC_URL). I tried to set library_path to the same CDN url, but faced with the problem that charting library doesn't work. There's an explanation why it's and they offered to create an iframe. However with the most common template create-react-app this is a bit tricky.

I think it will be very useful if there's an example showing how to do this in an awesome way using React. Probably, supporting this feature inside charting_library would be the most perfect way.

Thank you in advance for any ideas.

michaelkk avatar Dec 14 '20 07:12 michaelkk

Same problem, waiting solution :(

GarageInc avatar Dec 15 '20 07:12 GarageInc

Anyone managed to do a workaround in React with this?

kalexandrov avatar Sep 12 '22 14:09 kalexandrov