Skip to content
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

Invariant Violation: MultiSelect.render(): A valid ReactComponent must be returned. #36

Closed
boldt opened this issue Mar 24, 2016 · 3 comments

Comments

@boldt
Copy link

boldt commented Mar 24, 2016

My project uses React 0.13.3. I added the following:

return (<Multiselect />);

I am getting the following error:

Invariant Violation: MultiSelect.render(): A valid ReactComponent must be returned. You may have returned undefined, an array or some other invalid object

I guess it is an issue due to my older react version. Does your component work with React 0.13?

@skratchdot
Copy link
Owner

Version 0.6.0 still supports React 13. I'm not sure why I updated to React 14 (if it was too hard to support both versions or what).

I'll bump a major version when new React versions come out I guess (still not sure the best way to keep up w/ React changes- but I see a few libraries that do it that way).

So:
React 13 should use: react-bootstrap-multiselect: 0.6.0
React 14 should use: react-bootstrap-multiselect: 1.2.0
React 15 (when out of beta) should use something like 2.0.0 (which doesn't exist yet).

@boldt
Copy link
Author

boldt commented Mar 29, 2016

Maybe add this version info to the README?

@skratchdot
Copy link
Owner

Good call. I've updated the readme.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants