React complains about the following code with the error: Your render method should have return statement.
Could you please explain what is exact...
For further actions, you may consider blocking this person and/or reporting abuse
I'm guessing you're trying to export the ToDoItems component.
First change the name of your component accordingly so you can export/reuse it
then check your render method, this is no the good syntax, you're defining a function inside your render method which you should avoid at all cost. And React cannot access the return statement hence the warning.
Your render method should be:
Full code:
ToDoItems.js
ToDo.js
What a great solution to my problem. Thanks a lot.
I think in the file ToDoItems.js your return is inside "const todoItems = ...", so in the render method you are returning nothing. I am with mobile so sorry for the explanation.