This error is happening only when I render this in server-side (i.e. refresh the page) and the page keeps spinning. Using client-side rendering works fine.
The decoded error message is:
StarRatingComponent.render(): A valid React element (or null) must be returned. You may have returned undefined, an array or some other invalid object.
This error is happening only when I render this in server-side (i.e. refresh the page) and the page keeps spinning. Using client-side rendering works fine.
{ [Invariant Violation: Minified React error #109; visit http://facebook.github.io/react/docs/error-decoder.html?invariant=109&args[]=StarRatingComponent for the full message or use the non-minified dev environment for full errors and additional helpful warnings.] name: 'Invariant Violation', framesToPop: 1 }
The decoded error message is: StarRatingComponent.render(): A valid React element (or null) must be returned. You may have returned undefined, an array or some other invalid object.
Could someone check this and help.
code: