Skip to content

Commit

Permalink
Merge pull request #3226 from KartikAroraOfficial/source
Browse files Browse the repository at this point in the history
Updated: part1a in english and french, Edited: French part now uses Vite as well
  • Loading branch information
mluukkai authored Oct 30, 2023
2 parents 3ed404d + 66e152e commit acd0d97
Show file tree
Hide file tree
Showing 2 changed files with 233 additions and 47 deletions.
10 changes: 4 additions & 6 deletions src/content/1/en/part1a.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ The easiest way to get started by far is by using a tool called
Let's create an application called <i>part1</i>, navigate to its directory and install the libraries:

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

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

```bash
cd part1
Expand Down Expand Up @@ -245,7 +246,7 @@ const App = () => {
}
```

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.
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.

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

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

Let's modify the file <i>App.jsx</i> as follows:



```js
// highlight-start
const Hello = () => {
Expand Down
Loading

0 comments on commit acd0d97

Please sign in to comment.