Skip to content

Translate Passing props to a component page #301

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

Merged
merged 1 commit into from
Dec 16, 2021
Merged
Show file tree
Hide file tree
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
4 changes: 2 additions & 2 deletions beta/src/pages/learn/adding-interactivity.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ Read **[Responding to Events](/learn/responding-to-events)** to learn how to add

</LearnMore>

## State: a component's memory {/*state-a-components-memory*/}
## Stan: Pamięć komponentu {/*state-a-components-memory*/}

Components often need to change what's on the screen as a result of an interaction. Typing into the form should update the input field, clicking "next" on an image carousel should change which image is displayed, clicking "buy" puts a product in the shopping cart. Components need to "remember" things: the current input value, the current image, the shopping cart. In React, this kind of component-specific memory is called state.

Expand Down Expand Up @@ -224,7 +224,7 @@ button {

<LearnMore path="/learn/state-a-components-memory">

Read **[State: A Component's Memory](/learn/state-a-components-memory)** to learn how to remember a value and update it on interaction.
Read **[Stan: Pamięć komponentu](/learn/state-a-components-memory)** to learn how to remember a value and update it on interaction.

</LearnMore>

Expand Down
4 changes: 2 additions & 2 deletions beta/src/pages/learn/describing-the-ui.md
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ Read **[JavaScript in JSX with Curly Braces](/learn/javascript-in-jsx-with-curly

</LearnMore>

## Passing props to a component {/_passing-props-to-a-component_/}
## Przekazywanie wartości do komponentu {/_passing-props-to-a-component_/}

React components use _props_ to communicate with each other. Every parent component can pass some information to its child components by giving them props. Props might remind you of HTML attributes, but you can pass any JavaScript value through them, including objects, arrays, functions, and even JSX!

Expand Down Expand Up @@ -304,7 +304,7 @@ export function getImageUrl(person, size = 's') {

<LearnMore path="/learn/passing-props-to-a-component">

Read **[Passing Props to a Component](/learn/passing-props-to-a-component)** to learn how to pass and read props.
Read **[Przekazywanie wartości do komponentu](/learn/passing-props-to-a-component)** to learn how to pass and read props.

</LearnMore>

Expand Down
Loading