How I learnt Redux concepts β€” Crowdfire Engineering

#Redux explained in 4 simple steps, good #tutorial by @narendra_shetty πŸ‘ πŸ“š #reactjs

  • 2. Created a dispatcher method This is the only way to change the state of the application.
  • State is read-only The only way to mutate the state is to emit an action , an object describing what happened.
  • Dispatcher is called along with the action type which indicates how the state has to be changed.
  • We can now use any rendering logic to create a UI based on the state of the application and if any user actions needs to change the state, it has to go through dispatcher.
  • 4. Created a method to subscribe for the state change This method is used when an app needs to listen to the changes happening to the state.

Read the full article, click here.


@OpenCoconut: “#Redux explained in 4 simple steps, good #tutorial by @narendra_shetty πŸ‘ πŸ“š #reactjs”


So in the past few months there is a lot of fuss going on in Javascript community about React and Redux. Everyone is writing their…


How I learnt Redux concepts β€” Crowdfire Engineering

State Streams and React β€” Medium

  • Each connected component is forced to shallow compare in the shouldComponentUpdate lifecycle method because it doesn’t know if it just received a state update which is relevant or not.
  • The above gives us two action streams that we can use to reduce state with.
  • A state stream is effectively the result of reducing a stream of actions.
  • As mentioned before, the two core building blocks of a module’s state stream is its action stream and its reducer (of said action stream).
  • Accessing State in Action Streams

Read the full article, click here.


@MarkusCtz: “Why RxJS is the Better Tool for Unidirectional Data Flow: @christianalfoni @BenLesh @dan_abramov #reactjs #redux #rx”


Why RxJS is the Better Tool for Unidirectional Data Flow


State Streams and React β€” Medium

React D3 Library

A #JavaScript library that allows developers the ability to use D3 in #ReactJS.

  • We need to create a div element for D3 to build upon before converting it to a React component, var div = document.createElement(‘div’); and this div is what we will have D3 select.
  • A library that will allow developers the ability to reroute D3’s output to React’s virtual DOM. React-D3-Library will compile your code into React components, and it also comes with a series of D3 template charts converted to React components for developers who are unfamiliar with D3.
  • Not only do we build fully functional React components, but they utilize the power of D3 to automate scaling ranges, normalizing data, and constructing legends.
  • Use the componentDidMount() React lifecycle method to make the state aware of your new D3 div .
  • import React from ‘react’ ; import rd3 from ‘react-d3-library’ ;

Read the full article, click here.


@wiwer77: “A #JavaScript library that allows developers the ability to use D3 in #ReactJS.”


All of your D3 will now be compiled into React Elements which allows the ability to use React’s diffing algorithm for full optimization


React D3 Library

Mobx and React intro: syncing the UI with the app state using observable and observer

  • Our actions now consist of simple mutations to our observable state.
  • Exploit the separation of concern by moving all the state out of the components into a separate store or state.
  • Even more important is that we now have established a separation of concern between the observable state and the component that reacts with.
  • There is state marked with observable, and there are components which automatically derive from it, marked by observer.
  • MobX is a general purpose FRP library that provides the means to derive, for example, a React based user interface automatically from the state and keep it synchronized.

Read the full article, click here.


@kentcdodds: “”Mobx and React intro: syncing the UI with the app state” on @eggheadio by @mweststrate #eggheadADay πŸ†“ #ReactJS βš›”


Applications are driven by state. Many things, like the user interface, should always be consistent with that state.
[MobX](https://mobxjs.github.io/mobx) is a general purpose FRP library that provides the means to derive, for example, a React based user interface automatically from the state and keep it synchronized.

The net result of this approach is that writing applications becomes really straight-forward and boilerplate free.


Mobx and React intro: syncing the UI with the app state using observable and observer

Thinking in React

Thinking in @reactjs with a bunch of @jsfiddle examples –

  • Use the props to filter the rows in ProductTable and set the values of the form fields in SearchBar .
  • Step 1: Break the UI into a component hierarchy #
  • Find a common owner component (a single component above all the components that need the state in the hierarchy).
  • If you’re familiar with the concept of state , don’t use state at all to build this static version.
  • If you can’t find a component where it makes sense to own the state, create a new component simply for holding the state and add it somewhere in the hierarchy above the common owner component.

Read the full article, click here.


@oskar: “Thinking in @reactjs with a bunch of @jsfiddle examples –”


React is, in my opinion, the premier way to build big, fast Web apps with JavaScript. It has scaled very well for us at Facebook and Instagram.


Thinking in React

Announcing Reactive Trader Cloud

  • Announcing Reactive Trader Cloud
  • Reactive Trader Cloud is a demo client-server FX trading application.
  • To launch Reactive Trader in our demo environment, click .
  • The backend is composed of a set of services which can be scaled, deployed and upgraded independently.
  • Instead of using HTTP, the client connects to the backend using Websockets and since we have a number of services, we decided to use a messaging gateway to act as a broker: this allows the client to establish a single connection to the backend and the broker is used to route messages to the correct service instance or to the correct client.

Read the full article, click here.


@AdaptiveLimited: “Reactive Trader Cloud released, #reactjs front-end, backend on #Kubernetes, all open source!”


In April 2014 we gave a talk at React Conf London on Reactive user interfaces and open-sourced Reactive Trader, a demo app we used to demonstrate the different concepts we highlighted in the talk. The talk was focused on UIs so we put most of our effort into the front-end and built a very simple monolithic backend to simulate the different flows and failure scenarios.


Announcing Reactive Trader Cloud