We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9449aab commit e27dd53Copy full SHA for e27dd53
src/App.js
@@ -1,9 +1,7 @@
1
-import React, { useState } from "react";
+import React from "react";
2
3
import Display from "./components/Display";
4
5
-import "./App.css";
6
-
7
export default function App() {
8
const displayFunc = (data)=> {
9
console.log(data);
@@ -19,4 +17,4 @@ export default function App() {
19
17
</div>
20
18
21
);
22
-}
+}
src/index.js
@@ -2,6 +2,7 @@ import React from "react";
import ReactDOM from "react-dom";
import App from "./App";
+import "./App.css";
const rootElement = document.getElementById("root");
ReactDOM.render(<App />, rootElement);
0 commit comments