How to render a HTML comment in React?
Currently the render method can only return a single element/component. See: here In the discussion under that ticket some suggest to wrap multiple elements returned from a React component in a HTML comment so that the wrapping component is ignored by the browser, e.g.: <A> <B></B> <Fragment> <C></C> <D></D> </Fragment> <E></E> </A> would render to: <a> <b></b> <!--<fragment data-reactid="">--> <c></c> <d></d> <!--</fragment>--> <e></e> </a> But how to actually create a component that renders just HTML comment? In other words, how the render function of the 'fragment' component in the example