Skip to content

Commit 866b43b

Browse files
bgoonzgitbook-bot
authored andcommitted
GitBook: [master] one page and 5 assets modified
1 parent e4b7e35 commit 866b43b

File tree

6 files changed

+105
-3
lines changed

6 files changed

+105
-3
lines changed

.gitbook/assets/image (15).png

75.4 KB
Loading

.gitbook/assets/image (16).png

-64.3 KB
Loading

.gitbook/assets/image (17).png

-17.3 KB
Loading

.gitbook/assets/image (18).png

87.6 KB
Loading

.gitbook/assets/image (19).png

19.2 KB
Loading

generating-react-project.md

Lines changed: 105 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,13 @@
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

Comments
 (0)