summaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'index.js')
-rw-r--r--index.js19
1 files changed, 17 insertions, 2 deletions
diff --git a/index.js b/index.js
index 993e9a9..f82e7c8 100644
--- a/index.js
+++ b/index.js
@@ -1,3 +1,18 @@
-require("./style.css");
+import './style.css'
-document.write("It works."); \ No newline at end of file
+import React from 'react'
+import ReactDOM from 'react-dom'
+
+class Note extends React.Component {
+ render() {
+ return <div>Hai!</div>
+ }
+}
+
+main();
+
+function main() {
+ const app = document.createElement('div')
+ document.body.appendChild(app)
+ ReactDOM.render(<Note />, app)
+} \ No newline at end of file