Skip to content

Commit 539f89c

Browse files
author
Vishal Upadhyay
committed
Components and Props
1 parent ae2c55f commit 539f89c

File tree

9 files changed

+13
-119
lines changed

9 files changed

+13
-119
lines changed

2_communicating_with_props/src/App.css

-38
This file was deleted.

2_communicating_with_props/src/App.js

-25
This file was deleted.

2_communicating_with_props/src/App.test.js

-8
This file was deleted.

2_communicating_with_props/src/index.css

-13
This file was deleted.
+8-15
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,10 @@
1-
import React from 'react';
2-
import ReactDOM from 'react-dom';
3-
import './index.css';
4-
import App from './App';
5-
import reportWebVitals from './reportWebVitals';
1+
import React from "react";
2+
import ReactDOM from "react-dom";
63

7-
ReactDOM.render(
8-
<React.StrictMode>
9-
<App />
10-
</React.StrictMode>,
11-
document.getElementById('root')
12-
);
4+
const App = () => {
5+
return (
6+
<div>Hey!~~</div>
7+
);
8+
};
139

14-
// If you want to start measuring performance in your app, pass a function
15-
// to log results (for example: reportWebVitals(console.log))
16-
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
17-
reportWebVitals();
10+
ReactDOM.render(<App />, document.querySelector('#root'))

2_communicating_with_props/src/logo.svg

-1
This file was deleted.

2_communicating_with_props/src/reportWebVitals.js

-13
This file was deleted.

2_communicating_with_props/src/setupTests.js

-5
This file was deleted.

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,8 @@ Repo to quickly recap React concepts
55
![react](./images/1_React_Import.png)
66

77
## React Component
8-
![react_component](./images/2_React_Component.png)
8+
![react_component](./images/2_React_Component.png)
9+
10+
## Application
11+
12+
Semantic UI CDN Link: <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.4.1/semantic.min.css" />

0 commit comments

Comments
 (0)