deVSner

Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render 본문

Error collection/next 에러

Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render

RudeofSun 2020. 6. 23. 15:45
Warning: Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.
    in withRedux (created by withRedux(withRedux))
    in Provider (created by withRedux(withRedux))
    in withRedux(withRedux)
    in ErrorBoundary (created by ReactDevOverlay)
    in ReactDevOverlay (created by Container)
    in Container (created by AppContainer)
    in AppContainer
    in Root

 

 

 

1. export default wrapper.withRedux(withReduxSaga(XXXX));
2. export default wrapper.withRedux(XXXX);

 

분명히 2로 바꾼 거 같았는데...

왜 1로 설정이 되있지?...

 

1에서 2로 바꾸니까 해결!...

몇 일 걸린거야 이 에러...