0

I am working with react-redux, and I use stateless components

The error

This is my index.js

My app.js

the store is in another index.js file, inside a folder called redux

I have tried NewHOC, but I can't get rid of the error

1 Answers1

0

I believe you've had a look at this question since you mentioned "NewHOC".

With that in mind, ensure that in all your components you make use of a return statement if they are functional components or have a render method if they are class based components.

Based on your screenshots, it seems RouterDirectory is the likely culprit as the screenshots you did upload look fine but we can't see RouterDirectory.

If you can provide the code for RouterDirectory we can help you further.

adrian
  • 2,786
  • 2
  • 18
  • 33