Skip to content

Translate 'Higher-Order Components' page #156

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 2 commits into from
Dec 5, 2019

Conversation

jakubdrozdek
Copy link
Member

No description provided.

@jakubdrozdek jakubdrozdek requested a review from a team December 2, 2019 23:18
@netlify
Copy link

netlify bot commented Dec 2, 2019

Deploy preview for pl-reactjs ready!

Built with commit a6c27bb

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

@jakubdrozdek jakubdrozdek force-pushed the higher-order-components branch from 89c8186 to 0c88dd2 Compare December 2, 2019 23:37

In this document, we'll discuss why higher-order components are useful, and how to write your own.
W tym artykule podejmiemy dyskusję o tym, dlaczego komponenty wyższego rzędu są użyteczne oraz jak napisać własny.
Copy link
Contributor

Choose a reason for hiding this comment

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

"podejmiemy dyskusję" to chyba zbyt brutalna kalka językowa ;) może coś bardziej lajtowego jak "wyjaśnimy"?

>
> We previously recommended mixins as a way to handle cross-cutting concerns. We've since realized that mixins create more trouble than they are worth. [Read more](/blog/2016/07/13/mixins-considered-harmful.html) about why we've moved away from mixins and how you can transition your existing components.
> Poprzednio do rozwiązywania problemów przekrojowych sugerowaliśmy korzystanie z mixinów. Zdaliśmy sobie jednak sprawę, iż wprowadzają one więcej zamieszania niż pożytku. [Przeczytaj ten artykuł](/blog/2016/07/13/mixins-considered-harmful.html), jeśli chcesz dowiedzieć się, dlaczego odeszliśmy od tego wzorca i w jaki sposób dostosować swoje istniejące komponenty.
Copy link
Contributor

Choose a reason for hiding this comment

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

poprzednio -> dawniej


```js
function enhance(WrappedComponent) {
class Enhance extends React.Component {/*...*/}
// Must know exactly which method(s) to copy :(
// Musi wiedzieć, jakie metody trzeba skopiować :(
Copy link
Contributor

Choose a reason for hiding this comment

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

Musimy?

@jakubdrozdek jakubdrozdek added the 🌐 translated Translation is completed for this page label Dec 5, 2019
@jakubdrozdek jakubdrozdek merged commit 0987c82 into master Dec 5, 2019
@jakubdrozdek jakubdrozdek deleted the higher-order-components branch December 5, 2019 21:28
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.

2 participants