Skip to content

Commit acd0d97

Browse files
authored
Merge pull request #3226 from KartikAroraOfficial/source
Updated: part1a in english and french, Edited: French part now uses Vite as well
2 parents 3ed404d + 66e152e commit acd0d97

File tree

2 files changed

+233
-47
lines changed

2 files changed

+233
-47
lines changed

src/content/1/en/part1a.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ The easiest way to get started by far is by using a tool called
1515
Let's create an application called <i>part1</i>, navigate to its directory and install the libraries:
1616

1717
```bash
18-
# npm 6.x
18+
# npm 6.x (outdated, but still used by some):
1919
npm create vite@latest part1 --template react
2020

2121
# npm 7+, extra double-dash is needed:
22-
npm create vite@latest part1 -- --template react```
22+
npm create vite@latest part1 -- --template react
23+
```
2324

2425
```bash
2526
cd part1
@@ -245,7 +246,7 @@ const App = () => {
245246
}
246247
```
247248

248-
The compilation is handled by [Babel](https://babeljs.io/repl/). Projects created with *create-react-app* are configured to compile automatically. We will learn more about this topic in [part 7](/en/part7) of this course.
249+
The compilation is handled by [Babel](https://babeljs.io/repl/). Projects created with *create-react-app* or *vite* are configured to compile automatically. We will learn more about this topic in [part 7](/en/part7) of this course.
249250

250251
It is also possible to write React as "pure JavaScript" without using JSX. Although, nobody with a sound mind would do so.
251252

@@ -266,9 +267,6 @@ but when writing JSX, the tag needs to be closed:
266267
### Multiple components
267268

268269
Let's modify the file <i>App.jsx</i> as follows:
269-
270-
271-
272270
```js
273271
// highlight-start
274272
const Hello = () => {

0 commit comments

Comments
 (0)