React 支持JS
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title></title>
<script src="js/react.js"></script>
<script src="js/react-dom.js"></script>
<script src="js/browser.min.js"></script>
</head>
<body>
<div >
ReactDOM.render(
<div>
<h1>{3+4}</h1>
<p>{3==2?'true':'false'}</p>
</div>,
document.getElementById('example')
)
</script>
</body>
</html>
以上是 React 支持JS 的全部内容, 来源链接: utcz.com/z/382792.html