Skip to content

Commit ae2e574

Browse files
authored
Merge pull request #2793 from romanstetsyk/part1a-links
part1a: update links to react documentation
2 parents 04d5582 + e11221d commit ae2e574

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/content/1/en/part1a.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ lang: en
77

88
<div class="content">
99

10-
We will now start getting familiar with probably the most important topic of this course, namely the [React](https://reactjs.org/) library. Let's start by making a simple React application as well as getting to know the core concepts of React.
10+
We will now start getting familiar with probably the most important topic of this course, namely the [React](https://react.dev/) library. Let's start by making a simple React application as well as getting to know the core concepts of React.
1111

1212
The easiest way to get started by far is by using a tool called [create-react-app](https://github.com/facebook/create-react-app). It is possible (but not necessary) to install <i>create-react-app</i> on your machine if the <i>npm</i> tool that was installed along with Node has a version number of at least <i>5.3</i>.
1313

@@ -59,7 +59,7 @@ The files <i>App.css</i>, <i>App.test.js</i>, <i>index.css</i>, <i>logo.svg</i>,
5959

6060
### Component
6161

62-
The file <i>App.js</i> now defines a [React component](https://reactjs.org/docs/components-and-props.html) with the name <i>App</i>. The command on the final line of file <i>index.js</i>
62+
The file <i>App.js</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>index.js</i>
6363

6464
```js
6565
ReactDOM.createRoot(document.getElementById('root')).render(<App />)
@@ -189,7 +189,7 @@ Did you remember your promise to keep the console open? What was printed out the
189189

190190
### JSX
191191

192-
It seems like React components are returning HTML markup. However, this is not the case. The layout of React components is mostly written using [JSX](https://reactjs.org/docs/introducing-jsx.html). Although JSX looks like HTML, we are dealing with a way to write JavaScript. Under the hood, JSX returned by React components is compiled into JavaScript.
192+
It seems like React components are returning HTML markup. However, this is not the case. The layout of React components is mostly written using [JSX](https://react.dev/learn/writing-markup-with-jsx). Although JSX looks like HTML, we are dealing with a way to write JavaScript. Under the hood, JSX returned by React components is compiled into JavaScript.
193193

194194
After compiling, our application looks like this:
195195

@@ -277,7 +277,7 @@ Another strong convention is the idea of a <i>root component</i> called <i>App</
277277

278278
### props: passing data to components
279279

280-
It is possible to pass data to components using so-called [props](https://reactjs.org/docs/components-and-props.html).
280+
It is possible to pass data to components using so-called [props](https://react.dev/learn/passing-props-to-a-component).
281281

282282
Let's modify the component <i>Hello</i> as follows:
283283

@@ -415,7 +415,7 @@ const App = () => {
415415

416416
However, when defining the root component of the application this is not a particularly wise thing to do, and it makes the code look a bit ugly.
417417

418-
Because the root element is stipulated, we have "extra" div elements in the DOM tree. This can be avoided by using [fragments](https://reactjs.org/docs/fragments.html#short-syntax), i.e. by wrapping the elements to be returned by the component with an empty element:
418+
Because the root element is stipulated, we have "extra" div elements in the DOM tree. This can be avoided by using [fragments](https://react.dev/reference/react/Fragment), i.e. by wrapping the elements to be returned by the component with an empty element:
419419

420420
```js
421421
const App = () => {

0 commit comments

Comments
 (0)