summaryrefslogtreecommitdiff
path: root/react/01-helloworld-js/js/helloworld.js
diff options
context:
space:
mode:
Diffstat (limited to 'react/01-helloworld-js/js/helloworld.js')
-rw-r--r--react/01-helloworld-js/js/helloworld.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/react/01-helloworld-js/js/helloworld.js b/react/01-helloworld-js/js/helloworld.js
new file mode 100644
index 0000000..313042c
--- /dev/null
+++ b/react/01-helloworld-js/js/helloworld.js
@@ -0,0 +1,6 @@
+'use strict';
+
+ReactDOM.render(
+ React.createElement('h1', {}, 'Hello World!'),
+ document.getElementById('root')
+); \ No newline at end of file