Answer the question
In order to leave comments, you need to log in
How to add react library to existing site?
I am creating a simple site without node.js but with react. I use this tutorial: https://ru.reactjs.org/docs/add-react-to-a-website... For react to work, it is advised to connect it via CDN:
<div id="root"></div>
<!-- Load React. -->
<script src="https://unpkg.com/[email protected]/umd/react.production.min.js" crossorigin></script>
<script src="https://unpkg.com/[email protected]/umd/react-dom.production.min.js" crossorigin></script>
<!-- Load your React component. -->
<script src="root.js"></script>
<!-- Load React. -->
<script src="https://unpkg.com/[email protected]/umd/react.production.min.js" crossorigin></script>
<script src="https://unpkg.com/[email protected]/umd/react-dom.production.min.js" crossorigin></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/react-csv-reader.min.js" crossorigin></script>
<!-- Load your React component. -->
<script src="root.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 questionAsk a Question
731 491 924 answers to any question