How to set the width of a React component during test?

Posted by Jessica Taylor | Updated on

Want to set the width of a React component during test? Here is an example. React 0.14 warns about rendering document into body. Like what Matt said, we will need to append ‘div’ in the iframe to prevent such errors.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers