我正在 Reactjs 中构建 Web 应用程序。在从数据服务器映射记录的循环中,我收到此错误:
预期相应的 JSX 关闭
在这一行
<h5>Still Water <br> 500 ml</h5>
Run Code Online (Sandbox Code Playgroud)
完整的 catalog.jsx 代码:
var React = require('react');
var Parse = require('parse').Parse;
var ParseReact = require('parse-react');
module.exports = React.createClass({
mixins: [ParseReact.Mixin],
getInitialState: function() {
return {
error: null,
signup: false
};
},
//Observe Function - a newly proposed function for prarse react integration
observe: function() {
//declare any variable you need here.
return {
product: (new Parse.Query('product'))
.ascending('createdAt')
};
},
render: function() {
var content = ( …Run Code Online (Sandbox Code Playgroud)