V
V
Vladimir2020-01-30 13:51:58
JavaScript
Vladimir, 2020-01-30 13:51:58

How to connect react component from CDN?

There is an application created with create-react-app, some of the components I import from npm, but there are a couple of things that must be connected from cdn and not downloaded during assembly.
The component itself is designed so that it can be connected via a script tag, there are no problems with it, the question is how to connect files from cdn to an application created by create react app

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
abberati, 2020-01-30
@abberati

If this can be done, then with crutches and through such and such a mother. React is not intended for this use. Most likely, your problem can be solved differently, without resorting to such perverted approaches.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question