React: Have a return statement but “Nothing was returned from render. This usually means a return statement is missing”

前端 未结 0 907
无人及你
无人及你 2020-12-03 05:47

I have a component that I\'m currently trying to render. I put a return statement but I am still displaying an error.

import React, { useState } from \'react\         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题