📜  错误:NoteState(...):渲染没有返回任何内容.这通常意味着缺少 return 语句.或者,不渲染任何内容,返回 null. - Javascript代码示例

📅  最后修改于: 2022-03-11 15:02:29.605000             🧑  作者: Mango

代码示例1
This error can be seen for a number of reasons:

As mentioned above, starting the parenthesis on a new line or missing ;
Error:

render() {
  return  
  (
    
I am demo data
) } Correct way to implement render: render() { return (
I am demo html
); }