索引.cshtml
@{
ViewBag.Title = "Home Page";
}
<div id="content"></div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.3.2/react.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.3.2/react-dom.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/remarkable/1.7.1/remarkable.min.js"></script>
<script src="~/Scripts/react/react.min.js"></script>
<script src="@Url.Content("~/Scripts/app/app.jsx")"></script>
应用程序.jsx
var HelloWorld = React.createClass({
render: function () {
return (
<div>Hello World!!</div>
);
}
});
在浏览器中出现错误,例如
加载资源失败:服务器响应状态为 500(内部服务器错误)