S
S
Stepan2021-08-05 16:06:58
React
Stepan, 2021-08-05 16:06:58

How to include .js libraries in a React project?

I have a regular html file with libraries in the header:

<script type="text/javascript" src="assets/jquery-3.6.0.min.js"></script>
<script type="text/javascript" src="assets/jquery-ui.min.js"></script>
<script type="text/javascript" src="assets/jquery.ui.touch-punch.min.js"></script>


At the end of the tag, I also include 1 more script that uses libraries: How can I connect all this to a React project? A simple import "./assets/main.js" doesn't help here :(
<script src="./assets/main.js"></script>

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question