Skip to content

Translate 'Higher-Order Components' page - #156

Merged
jakubdrozdek merged 2 commits into
masterfrom
higher-order-components
Dec 5, 2019
Merged

jakubdrozdek merged 2 commits into
masterfrom
higher-order-components

Conversation

@jakubdrozdek

Copy link
Copy Markdown
Member

No description provided.

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

netlify Bot commented Dec 2, 2019 •

Copy link
Copy Markdown

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
Comment thread content/docs/higher-order-components.md Outdated
KWR-y pojawiają się często w zewnętrznych bibliotekach reactowych, np. [`connect`](https://github.com/reduxjs/react-redux/blob/master/docs/api/connect.md#connect) w Reduksie czy [`createFragmentContainer`](http://facebook.github.io/relay/docs/en/fragment-container.html) w Relayu.

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
Copy Markdown
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"?

Comment thread content/docs/higher-order-components.md Outdated
> **Uwaga**
>
> 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
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

poprzednio -> dawniej

Comment thread content/docs/higher-order-components.md Outdated
function enhance(WrappedComponent) {
class Enhance extends React.Component {/*...*/}
// Must know exactly which method(s) to copy :(
// Musi wiedzieć, jakie metody trzeba skopiować :(

Copy link
Copy Markdown
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
@tesseralis tesseralis mentioned this pull request Dec 5, 2019
82 of 94 tasks
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