  else
                    {
                        return eval(this.state.code)
                    }
                }
            });

            var renderer = ReactDOM.render(React.createElement(RendererComp,null), document.getElementById('__root__'));

             connection.onmessage = function (e) {
                 console.log('message received.');

                var msg = JSON.parse(e.data);

                renderer.setCode(msg.dom);
                renderer.render();

                consol