I am starting a new React application, and seeing all the news in the ecosystem, I want to go slowly and actually consider my options, starting with just React / Webpack / Babel and presenting more.
The first of these options is to use Flux or not (more precisely, Redux, which looks great and seems to have won the flux war). This is where I am:
To solve this problem without introducing new dependencies, I found two articles ( 1: Andrew Farmer , 2: Hao Chuan ), encouraging the use of the recently introduced React context function .
→ Using contextwould allow me to call my modifier models back to my child components. For me, this does not seem like a terrible abuse: I will not pass on the model data, but simply links to functions to bind to event handlers.
context
Thank.
Redux, .
, , : Redux Context ( , ). ( ) react-redux <Provider> connect().
Context
react-redux
<Provider>
connect()
, 24 - Store Down , Todo Redux . ( 1. testability/mockability, 2. , " , " ), .
, , 25 - , Context Redux .
26 - Store Down <Provider> response-redux, , react-redux.
27 - connect() React Redux .
, , , Angular. Angular DOM, , , , , DOM .
this.context DI. w.r.t Angular , , , childContextTypes , , this.context.
this.context
childContextTypes
, this.context , , Angular . , , .
, . , , , , . .
Source: https://habr.com/ru/post/1649965/More articles:https://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1649960/jenkins-how-to-configure-jenkins-behind-nginx-reverse-proxy-for-jnlp-slaves-to-connect&usg=ALkJrhiD_dAbWZXAcdtgVMj9SKDSlzlXKQCannot get tcpdump to collect data from Android - bashhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1649962/converting-dictionary-with-known-indices-to-a-multidimensional-array&usg=ALkJrhjmRdYzln802lOpVY7CK5WZTpYGoAError installing OpenCV on Ubuntu 16.04 - opencvRTL password fields for Android - androidReact Native NetInfo Always Returns Offline - iosvue-resource and working JSONP example - jsonpThymleaf for Spring in IntelliJ - URI Not Registered - springUIAlertController error popoverPresentationController: snapshot of an image that was not displayed leads to empty snapshots - iosjQuery Datatables - How to insert div between toolbar and table? - jqueryAll Articles