When using rjsf, multiple empty divs seem to be created that are not useful
3 empty divs seem to be created.
No empty divs should be created
3 empty divs are created
1.0.0
This bug seem to have been introduced in https://github.com/mozilla-services/react-jsonschema-form/pull/312 to support older versions of React (versions that are strictly before 0.15).
However, React 0.14 is a dead branch anyway, the latest 0.14.x release was made on 29th March 2016, soon it will be two years from now : https://github.com/facebook/react/releases/tag/v0.14.8
I think we should be returning null now again.
I agree that we could safely drop support for pre-0.15 React. Why do the empty
They are not a problem in themselves, it is just that I find that they make the generated DOM a little bit harder to debug, like useless logs that pollute when you try to do something.
+1 on this. Loving this lib but as someone who is a stickler for attention to detail the rendered html hurts my soul.

This is a problem for me because it pretty much removes the ability to use flex styles. Things like "justify-content: space-between" take the extra divs into consideration and you get all kinds of weird behaviors.
(edit: I "resolved" this by doing something super-hacky, I apply "position: absolute" to all empty divs on the form, which apparently removes them from the flex calculations)
I can solve this issue if you want to drop the support of React pre-0.15.
Assign this bug to me and I will change the null where ever we are returning empty </div> and create the pull request.
@gr8pathik I'm not able to assign it to you, but please feel free to work on this bug and create a PR!
@epicfaace I have started working on it. But when I cloned the repo and did the npm install and ran the test npm test. The test is failing for some reason. Do you know the reason why the test is failing? (Check attached image)

@gr8pathik what version of node do you have? I'm using 8.12.0
@epicfaace I have node v11.10.1 version.
It is possible that the tests fail on v11, I have seen this on other projects as well I think.
With v8 it should work imo
(oops didn't mean to close)
@edi9999 @epicfaace I have downgraded the node version to v10.15.3 and all the test are passed.
Most helpful comment
This bug seem to have been introduced in https://github.com/mozilla-services/react-jsonschema-form/pull/312 to support older versions of React (versions that are strictly before 0.15).
However, React 0.14 is a dead branch anyway, the latest 0.14.x release was made on 29th March 2016, soon it will be two years from now : https://github.com/facebook/react/releases/tag/v0.14.8
I think we should be returning null now again.