Skip to content

Commit 21a72c3

Browse files
committed
Simplify code example syntax
1 parent ebb4e79 commit 21a72c3

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

src/content/2/en/part2a.md

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,7 @@ export default App
108108
The file <i>main.jsx</i> looks like this:
109109

110110
```js
111-
import React from 'react'
112111
import ReactDOM from 'react-dom/client'
113-
114112
import App from './App'
115113

116114
const notes = [
@@ -408,7 +406,6 @@ We have been using modules the whole time. The first few lines of the file <i>ma
408406

409407
```js
410408
import ReactDOM from "react-dom/client"
411-
412409
import App from "./App"
413410
```
414411

@@ -422,9 +419,7 @@ Now, we'll create a directory called <i>components</i> for our application and p
422419

423420
```js
424421
const Note = ({ note }) => {
425-
return (
426-
<li>{note.content}</li>
427-
)
422+
return <li>{note.content}</li>
428423
}
429424

430425
export default Note

src/content/2/fi/osa2a.md

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,6 @@ Tiedosto <i>main.jsx</i> on muuten samanlainen kuin se on ollut toistaiseksi kai
107107

108108
```js
109109
import ReactDOM from 'react-dom/client'
110-
111110
import App from './App'
112111

113112
const notes = [
@@ -399,7 +398,6 @@ Koodissamme on käytetty koko ajan moduuleja. Tiedoston <i>main.jsx</i> ensimmä
399398

400399
```js
401400
import ReactDOM from "react-dom/client"
402-
403401
import App from "./App"
404402
```
405403

@@ -413,9 +411,7 @@ Tehdään nyt sovellukseen hakemisto <i>components</i> ja sinne tiedosto <i>Note
413411

414412
```js
415413
const Note = ({ note }) => {
416-
return (
417-
<li>{note.content}</li>
418-
)
414+
return <li>{note.content}</li>
419415
}
420416

421417
export default Note
@@ -491,7 +487,7 @@ const App = () => {
491487
// ...
492488
}
493489

494-
console.log('App toimii...') // highlight-line
490+
console.log('app works...') // highlight-line
495491

496492
return (
497493
// ..

0 commit comments

Comments
 (0)