Skip to content

Commit 10dbc4f

Browse files
committed
Merge branch 'source' of github.com:fullstack-hy2020/fullstack-hy2020.github.io into source
2 parents 19f9416 + 7f5007a commit 10dbc4f

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

src/content/1/fi/osa1d.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1091,13 +1091,11 @@ Huomaa, että sovelluksen tarvitsee toimia vain yhden selaimen käyttökerran aj
10911091
Kannattaa noudattaa samaa rakennetta kuin materiaalissa ja edellisessä tehtävässä, eli tiedoston <i>index.js</i> sisältö on seuraava:
10921092

10931093
```js
1094-
import ReactDOM from 'react-dom'
1094+
import ReactDOM from 'react-dom/client'
10951095
import App from './App'
10961096

1097-
ReactDOM.render(
1098-
<App />,
1099-
document.getElementById('root')
1100-
)
1097+
1098+
ReactDOM.createRoot(document.getElementById('root')).render(<App />)
11011099
```
11021100

11031101
Muun sovelluksen voi tehdä tiedostoon <i>App.js</i>. Tiedoston sisältö voi olla aluksi seuraava:

src/content/8/fi/osa8e.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ const typeDefs = gql`
193193
module.exports = typeDefs
194194
```
195195

196-
Siirretään reducereiden määrittely tiedostoon <i>reducers.js</i>
196+
Siirretään resolverien määrittely tiedostoon <i>resolvers.js</i>
197197

198198
```js
199199
const { UserInputError, AuthenticationError } = require('apollo-server')

src/content/9/en/part9b.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ Sometimes, an npm package can also include its types within the code and, in tha
272272
273273
Since the global variable <i>process</i> is defined by Node itself, we get its typings by from the package <i>@types/node</i>.
274274

275-
Since version 10.0 <i>ts-node</i> has defined <i>@types/node</i> as a [peer rependency](https://docs.npmjs.com/cli/v8/configuring-npm/package-json#peerdependencies). If the version of npm is at least 7.0, the peer dependencies of a project automatically installed by then npm. If you have an older npm, the peer dependency must be installed explicitly:
275+
Since version 10.0 <i>ts-node</i> has defined <i>@types/node</i> as a [peer dependency](https://docs.npmjs.com/cli/v8/configuring-npm/package-json#peerdependencies). If the version of npm is at least 7.0, the peer dependencies of a project automatically installed by then npm. If you have an older npm, the peer dependency must be installed explicitly:
276276

277277

278278
```shell

0 commit comments

Comments
 (0)