Permalink
Browse files

Add a non working Hello World react.js application

  • Loading branch information...
1 parent c223ce6 commit 3540512700c1100aa573d8d7720c8e136c4b464f @lucapette committed Jan 23, 2017
Showing with 17 additions and 0 deletions.
  1. +10 −0 public/index.html
  2. +7 −0 src/App.js
View
@@ -0,0 +1,10 @@
+<html>
+ <head>
+ <script src="App.js" type="text/javascript"></script>
+ </head>
+ <body>
+ <div id="root">
+ <!-- This div's content will be managed by React. Hopefully. -->
+ </div>
+ </body>
+</html>
View
@@ -0,0 +1,7 @@
+import React from 'react';
+import ReactDOM from 'react-dom';
+
+ReactDOM.render(
+ <h1>Hello, world!</h1>,
+ document.getElementById('root')
+);

0 comments on commit 3540512

Please sign in to comment.