I wanted to display zero in the root, so I can have a complete tree that displays zero, but just use the React component. (/ his life methods).
Here is some information about the "return of the zero concept": https://github.com/joshwcomeau/return-null - talk about lighting from the conf reaction.
I am making an electronic application. In the main area there is no dom. In this main area (index.js) I have a redux repository, I return null in the whole tree, including the root. However, I cannot initially do this because for the initial rendering I need to use ReactDOM.render as follows:
ReactDOM.render(<AllNullStuff />, document.getElementById('something'))
I don't have a DOM, is there any way to do this?
If I try null as root, I get an error:
Error: _registerComponent (...): The target container is not a DOM element.
Is there a way to render a fully null tree so that the DOM is not required?
source share