We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hi, One of the React 16 feature is possibility to render an array of components. Simple code like in this jsfiddle renders with no problem.
The same code under shallow (or any other type of rendering) will fail.
shallow
Code I use to test:
it('test', () => { const buttons = [ <button key="A">A</button>, <button key="B">B</button>, <button key="C">C</button>, ]; const wrapper = shallow(buttons); console.log(wrapper.debug()); });
It fails with such message:
Invariant Violation: ReactShallowRenderer render(): Invalid component element. ...
The text was updated successfully, but these errors were encountered:
Duplicate of #1149.
Sorry, something went wrong.
No branches or pull requests
Hi,
One of the React 16 feature is possibility to render an array of components. Simple code like in this jsfiddle renders with no problem.
The same code under
shallow
(or any other type of rendering) will fail.Code I use to test:
It fails with such message:
The text was updated successfully, but these errors were encountered: