Skip to content

Commit 83da66f

Browse files
committed
Remove Create-react-app
1 parent cd5c576 commit 83da66f

File tree

2 files changed

+2
-26
lines changed

2 files changed

+2
-26
lines changed

src/content/1/en/part1a.md

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -68,22 +68,6 @@ export default App
6868

6969
The files <i>App.css</i> and <i>index.css</i>, and the directory <i>assets</i> may be deleted as they are not needed in our application right now.
7070

71-
### create-react-app
72-
73-
Instead of Vite you can also use the older generation tool [create-react-app](https://github.com/facebookincubator/create-react-app) in the course to set up the applications. The most visible difference to Vite is the name of the application startup file, which is <i>index.js</i>.
74-
75-
The way to start the application is also different in CRA, it is started with a command
76-
77-
```bash
78-
npm start
79-
```
80-
81-
in contrast to Vite's
82-
83-
```bash
84-
npm run dev
85-
```
86-
8771
### Component
8872

8973
The file <i>App.jsx</i> now defines a [React component](https://react.dev/learn/your-first-component) with the name <i>App</i>. The command on the final line of file <i>main.jsx</i>
@@ -241,7 +225,7 @@ const App = () => {
241225
}
242226
```
243227

244-
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.
228+
The compilation is handled by [Babel](https://babeljs.io/repl/). Projects created with *Vite* are configured to compile automatically. We will learn more about this topic in [part 7](/en/part7) of this course.
245229

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

src/content/1/fi/osa1a.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,6 @@ export default App
6060

6161
Tiedostot <i>App.css</i> ja <i>index.css</i> sekä hakemiston <i>assets</i> voi poistaa, sillä emme tarvitse niitä.
6262

63-
### create-react-app
64-
65-
Voit halutessasi käyttää kurssilla Viten sijaan myös [create-react-app](https://github.com/facebookincubator/create-react-app)-nimistä sovellusta. Näkyvin ero Viteen on sovelluksen aloitustiedoston nimi, joka on <i>index.js</i>. Myös sovelluksen käynnistämistapa eroaa, käynnistäminen tapahtuu komennolla
66-
67-
```
68-
npm start
69-
```
70-
7163
### Komponentti
7264

7365
Tiedosto <i>App.jsx</i> määrittelee nyt React-[komponentin](https://react.dev/learn/your-first-component) nimeltään <i>App</i>. Tiedoston <i>main.jsx</i> viimeisen rivin komento
@@ -226,7 +218,7 @@ const App = () => {
226218
}
227219
```
228220

229-
Käännöksen hoitaa [Babel](https://babeljs.io/repl/). Create-react-app:illa luoduissa projekteissa käännös on konfiguroitu tapahtumaan automaattisesti. Tulemme tutustumaan aiheeseen tarkemmin kurssin [osassa 7](/osa7).
221+
Käännöksen hoitaa [Babel](https://babeljs.io/repl/). Vitellä luoduissa projekteissa käännös on konfiguroitu tapahtumaan automaattisesti. Tulemme tutustumaan aiheeseen tarkemmin kurssin [osassa 7](/osa7).
230222

231223
Reactia olisi mahdollista kirjoittaa myös "suoraan JavaScriptinä" käyttämättä JSX:ää, mutta tämä ei ole järkevää.
232224

0 commit comments

Comments
 (0)