Written by
react-style
on
on
[리액트 에러 해결] Nothing was returned from render
[리액트 에러 해결] Nothing was returned from render
-
좋아요
반응형
에러
Nothing was returned from render. This usually means a return statement is missing. Or, to render nothing, return null
화면에 아무것도 안나와서 console창에 보니깐 이런 error가 떠있었다.
한참 생각해봤는데, render nothing이라는걸 보고 다시 코드를 찾아보니깐
괄호를 ( ) 이게 아니라 { } 이렇게 써놨었다.
( ) --> o
{ } --> x
반응형
from http://reitsplusrich.tistory.com/61 by ccl(A) rewrite - 2021-10-18 01:27:49