22
33![ ] ( .gitbook/assets/image%20%2812%29.png )
44
5- ![ ] ( .gitbook/assets/image%20%2816 %29.png )
5+ ![ ] ( .gitbook/assets/image%20%2817 %29.png )
66
77
88
99![ ] ( .gitbook/assets/image%20%2810%29.png )
1010
11- ![ ] ( .gitbook/assets/image%20%2817 %29.png )
11+ ![ ] ( .gitbook/assets/image%20%2818 %29.png )
1212
1313![ ] ( .gitbook/assets/image%20%288%29.png )
1414
@@ -93,7 +93,7 @@ This section has moved here: [https://facebook.github.io/create-react-app/docs/t
9393
9494
9595
96- ![ ] ( .gitbook/assets/image%20%2815 %29.png )
96+ ![ ] ( .gitbook/assets/image%20%2816 %29.png )
9797
9898
9999
@@ -107,7 +107,99 @@ This section has moved here: [https://facebook.github.io/create-react-app/docs/t
107107
108108
109109
110+ ``` text
111+ tree
112+ .
113+ ├── README.md
114+ ├── package-lock.json
115+ ├── package.json
116+ ├── public
117+ │ ├── favicon.ico
118+ │ ├── index.html
119+ │ ├── logo192.png
120+ │ ├── logo512.png
121+ │ ├── manifest.json
122+ │ └── robots.txt
123+ └── src
124+ ├── App.css
125+ ├── App.js
126+ ├── App.test.js
127+ ├── index.css
128+ ├── index.js
129+ ├── logo.svg
130+ ├── reportWebVitals.js
131+ └── setupTests.js
132+
133+ 2 directories, 17 files
134+ ```
135+
136+
137+
138+
139+
140+ ![ ] ( .gitbook/assets/image%20%2819%29.png )
141+
142+
143+
144+
145+
146+ ``` javascript
147+ // ! 1.) import the react and reactDOM libraries
148+ import React from ' react' ;
149+ import ReactDOM from ' react-dom' ;
150+ // ==> React uses a bundler package called webpack
151+ // ===> the coe we write in index.js is not automatically available throughout the project
152+ // =====> The same is true of any js file and that is why we need to import them.
153+
154+
155+
156+
157+
158+
159+
160+ // ! 2.) Create React Component
161+
162+
163+
164+
165+
166+
167+
168+
169+
170+
171+
172+ // ! 3.) Take the react component and render it on the screen
173+
174+
175+
176+
177+
178+
179+
180+ ```
181+
182+
183+
184+ ![ ] ( .gitbook/assets/image%20%2815%29.png )
185+
186+
187+
188+ ``` javascript
189+ // ! 1.) import the react and reactDOM libraries
190+ import React from ' react' ;
191+ import ReactDOM from ' react-dom' ;
192+ // ==> React uses a bundler package called webpack
193+ // ===> the coe we write in index.js is not automatically available throughout the project
194+ // =====> The same is true of any js file and that is why we need to import them.
195+
196+
197+
198+
199+
200+
110201
202+ // ! 2.) Create React Component
111203
112204
113205
@@ -119,17 +211,27 @@ This section has moved here: [https://facebook.github.io/create-react-app/docs/t
119211
120212
121213
214+ // ! 3.) Take the react component and render it on the screen
122215
123216
124217
125218
126219
127220
221+ ```
128222
129223
130224
131225
132226
227+ ``` javascript
228+ // ! 1.) import the react and reactDOM libraries
229+ import <<<React >>> from ' react' ;
230+ import ReactDOM from ' react-dom' ;
231+ // The name of the react import is a matter of choice
232+ // we could also write :
233+ import MyReact from ' react' ; // and it would work all the same.
234+ ```
133235
134236
135237
0 commit comments