-
Notifications
You must be signed in to change notification settings - Fork 54
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
Conversation
Deploy preview for pl-reactjs ready! Built with commit a6c27bb |
89c8186
to
0c88dd2
Compare
|
||
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. |
There was a problem hiding this comment.
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. |
There was a problem hiding this comment.
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ć :( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Musimy?
No description provided.