+ 4
"A Valid React Element (Or Null) Must Be Returned"
How can I fix this error? I have made a class component for an input field with 2 props but it won't display without an error. https://code.sololearn.com/WxVBWYuBbCNA/?ref=app
5 Respostas
+ 6
No return in the render method of the first component.
+ 5
No return in the Field component render method to be precise
+ 3
Coder Basically, I forgot the return keyword in the render function so React through a tantrum full of errors that made no sense.
I wish it would tell me that I need to add a return not tell me I'm violating the entire framework.