我有關於「ReactJS」的基本知識,但沒有深入。什麼是ReactJS以及如何將它與HTML代碼一起使用?
REACT爲Facebook開發的前端庫。它用於處理Web和移動應用程序的視圖層。 ReactJS允許我們創建可重用的UI組件。它目前是最流行的JavaScript庫之一,它擁有強大的基礎和大型社區。
按我的知識,我們需要添加下面的HTML文件,但我沒有明晰如何使用它,在使用它,什麼是使用ReactJS與HTML的優點。
<html>
<head>
<title>Hello World with React</title>
</head>
<body>
<script src="js/react-0.12.2.js"></script>
<script src="js/JSXTransformer-0.12.2.js"></script>
<script type="text/jsx" src="hello.jsx"></script>
<script type="text/jsx" src="main.jsx"></script>
</body>
</html>`
https://facebook.github.io/react/tutorial /tutorial.html – Thilo
谷歌的「反應教程」。 –