Skip to content
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

Translate 'Building Your Own Hooks' page #60

Merged
merged 4 commits into from Mar 28, 2019
Merged

Translate 'Building Your Own Hooks' page #60

merged 4 commits into from Mar 28, 2019

Conversation

g12i
Copy link
Contributor

@g12i g12i commented Mar 23, 2019

@g12i g12i added the work in progress Author opened the pull-request but it's still being worked on label Mar 23, 2019
@g12i g12i changed the title Translate part of the document Translate 'Custom hooks' page Mar 23, 2019
@g12i g12i changed the title Translate 'Custom hooks' page Translate 'Building Your Own Hooks' page Mar 23, 2019
@netlify
Copy link

netlify bot commented Mar 23, 2019

Deploy preview for pl-reactjs ready!

Built with commit f73c760

https://deploy-preview-60--pl-reactjs.netlify.com

@g12i g12i added needs review A pull request ready to be reviewed and removed work in progress Author opened the pull-request but it's still being worked on labels Mar 24, 2019
@g12i g12i marked this pull request as ready for review March 24, 2019 15:40
@g12i g12i requested a review from a team March 24, 2019 15:40

Unlike a React component, a custom Hook doesn't need to have a specific signature. We can decide what it takes as arguments, and what, if anything, it should return. In other words, it's just like a normal function. Its name should always start with `use` so that you can tell at a glance that the [rules of Hooks](/docs/hooks-rules.html) apply to it.
W przeciwieństwie do reactowych komponentów, własny hook nie ma narzuconego określonego kształtu. Sami decydujemy, jakie przyjmuje argumenty i jaką, jeśli jakąkolwiek, wartość zwróci. Innymi słowy zachowuje się jak zwykła funkcja. Jego nazwa powinna zawsze zaczynać się od `use`, aby można było już na pierwszy rzut oka stwierdzić, czy stosuje on do [zasad korzystania z hooków](/docs/hooks-rules.html).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
W przeciwieństwie do reactowych komponentów, własny hook nie ma narzuconego określonego kształtu. Sami decydujemy, jakie przyjmuje argumenty i jaką, jeśli jakąkolwiek, wartość zwróci. Innymi słowy zachowuje się jak zwykła funkcja. Jego nazwa powinna zawsze zaczynać się od `use`, aby można było już na pierwszy rzut oka stwierdzić, czy stosuje on do [zasad korzystania z hooków](/docs/hooks-rules.html).
W przeciwieństwie do reactowych komponentów, własny hook nie ma narzuconego określonego kształtu. Sami decydujemy, jakie przyjmuje argumenty i jaką, jeśli jakąkolwiek, wartość zwróci. Innymi słowy, zachowuje się jak zwykła funkcja. Jego nazwa powinna zawsze zaczynać się od `use`, aby można było już na pierwszy rzut oka stwierdzić, czy mają do niego zastosowanie [zasady korzystania z hooków](/docs/hooks-rules.html).

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ach, miało być stosuje się on.
W Twoim wariancie mam wątpliwość czy

czy mają do niego zastosowanie
czy
czy mają dla niego zastosowanie

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Faktycznie, lepiej brzmi "dla" w tym kontekście.

Copy link
Member

@jakubdrozdek jakubdrozdek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Kilka drobnych błędów. Poza tym dobre tłumaczenie 👍

@jakubdrozdek jakubdrozdek added the needs author response Changes requested needing author's input label Mar 27, 2019
Co-Authored-By: g12i <grzebieniowski@gmail.com>
@jakubdrozdek jakubdrozdek added needs +1 Needs another approval before merging and removed needs author response Changes requested needing author's input labels Mar 27, 2019
@cvqprs cvqprs merged commit 3081fb1 into master Mar 28, 2019
@cvqprs cvqprs added 🌐 translated Translation is completed for this page and removed needs +1 Needs another approval before merging needs review A pull request ready to be reviewed labels Mar 28, 2019
@g12i g12i deleted the hooks-custom branch April 1, 2019 18:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🌐 translated Translation is completed for this page
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants