请输入您要查询的百科知识:

 

词条 Redux (JavaScript library)
释义

  1. Description

  2. History

  3. References

{{Infobox software
| name = Redux
| logo = Redux Logo.png
| author = Dan Abramov and Andrew Clark
| released = {{Start date and age|2015|06|02}}[1]
| latest release version = 4.0.0
| latest release date = {{Start date and age|2018|04|17}}[2]
| status = Active
| programming language = JavaScript
| platform = Cross-platform
| genre = JavaScript library
| license = MIT
| website = {{URL|redux.js.org}}
}}

Redux is an open-source JavaScript library for managing application state. It is most commonly used with libraries such as React or Angular for building user interfaces. Similar to (and inspired by) Facebook's Flux architecture, it was created by Dan Abramov and Andrew Clark.

Description

Redux is a small library with a simple, limited API designed to be a predictable container for application state. It operates in a similar fashion to a reducing function, a functional programming concept.

It is influenced by the functional programming language Elm.[3]

History

Redux was created by Dan Abramov and Andrew Clark in 2015.[4] Abramov began writing the first Redux implementation while preparing for a conference talk[5] at React Europe[6] on hot reloading. Abramov remarks, "I was trying to make a proof of concept of Flux where I could change the logic. And it would let me time travel. And it would let me reapply the future actions on the code change."[7]

Abramov was struck by the similarity of the Flux pattern with a reducing function. "I was thinking about Flux as a reduce operation over time... your stores, they accumulate state in response to these actions. I was thinking of taking this further. What if your Flux store was not a store but a reducer function?"[4]

Abramov reached out to Clark (author of the Flux implementation Flummox) as a collaborator. Among other things, he credits Clark with making the Redux ecosystem of tools possible, helping to come up with a coherent API, implementing extension points such as middleware and store enhancers.[4]

References

1. ^[https://github.com/reduxjs/redux/releases/tag/v0.2.0 Initial release tag]
2. ^{{cite web |url=https://github.com/reduxjs/redux/releases |title=Releases – ReactJS/Redux |website=GitHub}}
3. ^{{cite web | website=Smashing Magazine | title=An Introduction To Redux | url=https://www.smashingmagazine.com/2016/06/an-introduction-to-redux/}}
4. ^{{cite web|last1=Abramov|first1=Dan|title=The History of React and Flux with Dan Abramov|url=http://threedevsandamaybe.com/the-history-of-react-and-flux-with-dan-abramov/|website=Three Devs and a Maybe|accessdate=7 April 2018}}
5. ^{{cite web | website=Youtube | title=Dan Abramov - Live React: Hot Reloading with Time Travel at react-europe 2015 | url=https://www.youtube.com/watch?v=xsSnOQynTHs}}
6. ^{{cite web | website=ReactEurope | title=ReactEurope 2015 - Live React: Hot Reloading with Time Travel | url=https://2015.react-europe.org/#reloading-anchor}}
7. ^{{cite web|last1=Abramov|first1=Dan|title=Progression, Curiosity, and Burnout with Dan Abramov|url=https://tylermcginnis.com/podcast/dan-abramov/|website=TylerMcGinnis.com|accessdate=7 April 2018}}

1 : JavaScript libraries

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/16 4:41:02