-
Notifications
You must be signed in to change notification settings - Fork 253
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught Error: A valid ReactComponent must be returned. #23
Comments
Turns out if I change render to be this, it works: render() {
return <div>{this.props.children}</div>
} |
Hey can you paste me the before-code too, I'm not sure I understand what you're doing. |
I see now, you are referring to the Ok. @natew It would be somewhat helpful to know what the value of |
I was able to recreate your issue via user-error. For example:
will fail with:
While this is a user-error not a component-error it is fair to say the component does not fail gracefully and leads the programmer astray while trying to debug (hence this issue). I will create a |
i tried this render: function() {
var posts=null;
posts= <Single_post/>;
return(
<div>
{posts}
</div>
);
} without |
@DeadStar1 You return statement should be inside { } Like
|
For some reason I'm getting this error:
It seems to import just fine and I'm trying a variety of props, but always getting this.
The text was updated successfully, but these errors were encountered: