protected function setupErrorHandling()
 {
     ReactJS::setErrorHandler(function ($message, $code) {
         throw new Exception($message);
     });
 }