Menu

As informações desta página não estão completamente disponíveis no seu idioma de escolha. Esperamos disponibiliza-las integralmente em outros idiomas em breve. Para ter acesso às informações no idioma de sua preferência, faça o download do PDF aqui.

Published: Apr 05, 2016
Last Updated: Oct 28, 2020
Oct 2020
Experimente?

Decidimos mover o Redux de volta ao anel Experimente para ilustrar que não o consideramos mais a abordagem padrão para gerenciamento de estado em aplicações React. Nossa experiência mostra que o Redux ainda é um framework valioso em muitos casos, mas comparado a outras abordagens, ele leva a um código mais detalhado e difícil de seguir. A inclusão do Redux Sagas geralmente aumenta esse problema. Como alternativa, você em geral pode usar os recursos das versões recentes do React para gerenciar o estado de maneira eficaz sem um framework adicional. No entanto, queremos destacar que quando você atinge o ponto em que sua solução de gerenciamento de estado simples começa a se tornar complexa, pode valer a pena recorrer ao Redux ou talvez ao recém-publicado pelo Facebook, Recoil.

Mar 2017
Adote?

With the increasing complexity of single-page JavaScript applications, we have seen a more pressing need to make client-side state management predictable. Redux, with its three principles of restrictions for updating state, has proven to be invaluable in a number of projects we have implemented. Getting Started with Redux and idiomatic Redux tutorials are a good starting point for new and experienced users. Its minimal library design has spawned a rich set of tools, and we encourage you to check out the redux-ecosystem-links project for examples, middleware and utility libraries. We also particularly like the testability story: Dispatching actions, state transitions and rendering can be unit-tested separately from one another and with minimal amounts of mocking.

Nov 2016
Adote?

With the increasing complexity of single-page JavaScript applications, we have seen a more pressing need to make client-side state management predictable. Redux, with its three principles of restrictions for updating state, has proven to be invaluable in a number of projects we have implemented. Getting Started with Redux and idiomatic Redux tutorials are a good starting point for new and experienced users. Its minimal library design has spawned a rich set of tools, and we encourage you to check out the redux-ecosystem-links project for examples, middleware and utility libraries. We also particularly like the testability story: Dispatching actions, state transitions and rendering can be unit-tested separately from one another and with minimal amounts of mocking.

Apr 2016
Experimente?

Redux is a great, mature tool that has helped many of our teams reframe how they think about managing state in client-side apps. Using a Flux-style approach, it enables a loosely coupled state-machine architecture that's easy to reason about. We've found it a good companion to some of our favored JavaScript frameworks, such as Ember and React.