📅  最后修改于: 2023-12-03 15:31:20.620000             🧑  作者: Mango
ReactJS is a JavaScript library for building user interfaces. It is maintained and developed by Facebook. ReactJS allows developers to build reusable UI components and manage component state effectively.
To get started with ReactJS, you need to include the library in your projects. There are two ways to include ReactJS in your projects:
In this document, we will discuss the second way of including ReactJS in your projects, using a CDN.
Using a CDN to include ReactJS in your projects has several benefits:
Here are some popular CDN links for including ReactJS in your projects:
<!-- ReactJS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/17.0.1/umd/react.production.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/17.0.1/umd/react-dom.production.min.js"></script>
<!-- ReactJS with JSX support -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/17.0.1/umd/react.production.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/17.0.1/umd/react-dom.production.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.26.0/babel.min.js"></script>
<!-- ReactJS with Redux -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/17.0.1/umd/react.production.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react-dom/17.0.1/umd/react-dom.production.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/redux/4.0.5/redux.min.js"></script>
Using a CDN to include ReactJS in your projects is a quick and easy way to get started with the library. Choose a CDN link that meets your project's requirements and include it in your HTML files. Happy coding!