Reactjs running on apache

1

I have the following structure to display the famous Hello World with reactjs:

<!DOCTYPE html>
<html>
   <head>
      <meta charset="UTF-8">
      <title></title>
      <script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.3.2/react.min.js"></script><scriptsrc="https://cdnjs.cloudflare.com/ajax/libs/react/15.3.2/react-dom.min.js"></script>
      <script src="https://cdnjs.cloudflare.com/ajax/libs/babel-core/6.1.19/browser.min.js"></script></head><body><divid="root"></div>  

     <script type="text/babel">
         ReactDOM.render(
                <h1>Hello World</h1>,
                document.getElementById('root')
         );
     </script>   
  </body>
</html>

I'm using the latest version of xampp and using netbeans as IDE with the php plugin. When I run the project the blank page appears in the browser. Is there an error in the code?

This error appeared in the console (now that I saw it):

    
asked by anonymous 30.10.2016 / 01:43

1 answer

1

The code did not run because of the babel core version. 6.1 to the latest versions show the error of the posted image; of versions 6.0.0 through 6.0.20, content is not displayed; of versions prior to 6.0.0, the content is fully displayed.

Thank you to those who have helped; For the time being problem related to this has been solved!

    
30.10.2016 / 03:26