Skip to content

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

> **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
Contributor

Choose a reason for hiding this comment

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

poprzednio -> dawniej

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