Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

include react in html

<!-- ... autres contenus HTML ... -->

  <!-- Charge React -->
  <!-- Remarque : pour le déploiement, remplacez "development.js"
       par "production.min.js" -->
  <script src="https://unpkg.com/react@16/umd/react.development.js" crossorigin></script>
  <script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js" crossorigin></script>

  <!-- Charge notre composant React -->
  <script src="like_button.js"></script>
</body>
Source by fr.reactjs.org #
 
PREVIOUS NEXT
Tagged: #include #react #html
ADD COMMENT
Topic
Name
1+6 =