aboutsummaryrefslogtreecommitdiff
path: root/part2/phonebook/src/index.js
diff options
context:
space:
mode:
authorIbrahim Mkusa <ibrahimmkusa@gmail.com>2023-05-03 17:19:50 -0400
committerIbrahim Mkusa <ibrahimmkusa@gmail.com>2023-05-03 17:19:50 -0400
commitc4033a8e28d681f3c038890d70b19a1ee3021fa1 (patch)
tree172b07a4b087757a6a1d94ef549b6f4b5dcbb21c /part2/phonebook/src/index.js
parentc02f5c6f75a6420cb0a901f1463ed8ebf89e4268 (diff)
ex2.16 added custom component to display status of phonebook
Diffstat (limited to 'part2/phonebook/src/index.js')
-rw-r--r--part2/phonebook/src/index.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/part2/phonebook/src/index.js b/part2/phonebook/src/index.js
index 68a05ff..f3eb11d 100644
--- a/part2/phonebook/src/index.js
+++ b/part2/phonebook/src/index.js
@@ -1,10 +1,10 @@
-import React from 'react';
-import ReactDOM from 'react-dom/client';
-import App from './App';
+import React from 'react'
+import ReactDOM from 'react-dom/client'
+import App from './App'
+import './index.css'
-
-const root = ReactDOM.createRoot(document.getElementById('root'));
+const root = ReactDOM.createRoot(document.getElementById('root'))
root.render(
- <App />
+ <App />
)