Skip to content

Started translating tutorial page #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions content/tutorial/tutorial.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ redirect_from:
---

This tutorial doesn't assume any existing React knowledge.
.React هذا الدليل التطبيقي لا يفترض اي معرفة مسبقة بمكتبة

## Before We Start the Tutorial {#before-we-start-the-tutorial}

Expand Down Expand Up @@ -80,7 +81,7 @@ This setup requires more work but allows you to complete the tutorial using an e
npx create-react-app my-app
```

3. Delete all files in the `src/` folder of the new project
3. Delete all files in the `src/` folder of the new project

> Note:
>
Expand Down Expand Up @@ -227,7 +228,7 @@ Congratulations! You've just "passed a prop" from a parent Board component to a

### Making an Interactive Component {#making-an-interactive-component}

Let's fill the Square component with an "X" when we click it.
Let's fill the Square component with an "X" when we click it.
First, change the button tag that is returned from the Square component's `render()` function to this:

```javascript{4}
Expand Down Expand Up @@ -1015,7 +1016,7 @@ In JavaScript, arrays have a [`map()` method](https://developer.mozilla.org/en-U
```js
const numbers = [1, 2, 3];
const doubled = numbers.map(x => x * 2); // [2, 4, 6]
```
```

Using the `map` method, we can map our history of moves to React elements representing buttons on the screen, and display a list of buttons to "jump" to past moves.

Expand Down