react-konva now supports @reactjs v16. Now it uses new react-reconciler.

  • React Konva is a JavaScript library for drawing complex canvas graphics using React.
  • Currently you can use all components as React components and all events are supported on them in same way as normal browser events are supported.
  • It is NOT about drawing graphics, but react-konva is exactly for drawing complex graphics on element from React.
  • Konva helps here a lot (especially when you need events for objects on canvas, like “click” on shape, it is really hard to do with vanilla canvas).
  • Somethings like: – – But for simple cases you can use methods: – – For images you need manually create native window.Image instance or element and use it as attribute of component.

react-konva – React + Canvas = Love. JavaScript library for drawing complex canvas graphics using React.
Continue reading “react-konva now supports @reactjs v16.
Now it uses new react-reconciler.”

Action Streams and Redux – Markus Coetzee – Medium

Action Streams and Redux @MarkusCtz  #Redux #Reactjs #JavaScript

  • With the code the question of ‘How does this list of items behave’ becomes easy to answer, because it has been explicitly declared and we no longer have to search the code to build up our mental model.
  • The code seems fine, but we did introduce state management to the function, which has resulted in some control flow.
  • With the code each operation is also responsible for reloading the list – i.e., we’re mixing concerns, which I don’t think is inherently wrong, but in this case it can easily result in spaghetti code if the screen’s complexity increases.
  • If we need to imperatively integrate with the data flow of an older module, you would likely need to manually subscribe to it and dispatch a new Redux action when it triggers.
  • When we have successfully performed an operation on a list item, we want to reload the list.

A couple of months ago I experimented with using RxJS for unidirectional data flow. The focus was on showcasing how action streams could be used to form state streams via plain old reducer functions…
Continue reading “Action Streams and Redux – Markus Coetzee – Medium”

I grumpily ignored the comments about mobx for a while, then finally broke and u…

Nothing beats happy users :) #mobx #reactjs Full comment:

  • with mobx, at least the way I’m using it, you can generally get away with just passing in the relevant model, You keep ending up with situations where you pass your ProductList model into your ProductList component, which maps over the Product models it contains and passes them into a component called Product.
  • With mobx, you add some new observers and (optionally) some actions to change those observers and…
  • 3) On a related note, redux really needs data to be normalized; you end up devoting a remarkable amount of time to normalizing data (using normalizr or whatever) and then de-normalizing it in your components to handel relations properly, and then figuring out how to modify your normalized state tree in your reducers based on actions triggered in your denormalized component tree.
  • 4) Closely related to the last two points, components written with redux in mind often end up with very extensive lists of props, because they end up needing a little bit of data from six different reducers, plus a dozen action creators.
  • 2) Redux has some very specific ways it wants you to structure your project, and some of them are quite good.

(Disclaimer: We use React to incrementally replace/upgrade pages and panels in a very large admin console. So we have a ton of very small apps that share a lot of concepts, but are still distinct apps. Obviously this multiplies the amount of boilerplate we have to deal with compared to if we were using a single “monolithic” SPA.)
Continue reading “I grumpily ignored the comments about mobx for a while, then finally broke and u…”

Tips For a Better Redux Architecture: Lessons for Enterprise Scale

  • The put effect instructs the runner to dispatch or “put” an action back onto the state, which in this case is created by an action creator.
  • This sort of set up does tend to yield to a lot of duplicated bootstrapping code for each Module.
  • We then structure the contents inside the Module’s files with the same format for every Module of the application, enforcing uniformity.
  • Container : The smart , top rendering class that injects all props from the module file including state and action creators.
  • Allowing Redux to handle the state of the application in a singular/global context takes the guesswork out of knowing what inner-dependencies exist within a large application.

So you’ve decided to try out Redux as your application state manager. Or perhaps you’re investigating better options. Good for you. With Redux the good new.
Continue reading “Tips For a Better Redux Architecture: Lessons for Enterprise Scale”

Why does React emphasize on unidirectional data flow and Flux architecture?

Why does #ReactJS emphasize on unidirectional data flow and #Flux architecture?

  • The view is a function of the application state.
  • View components subscribe to the stores and automatically re-render themselves using the new data.
  • As the state can be mutated by both controller and view, sometimes the data flow becomes unpredictable.
  • In two way data binding the view is updated when the state changes, and vice versa.
  • By keeping the data flow unidirectional you keep a single source of truth i.e. Store.

Read the full article, click here.


@Hashnoder: “Why does #ReactJS emphasize on unidirectional data flow and #Flux architecture?”


The official docs say that it gives you the control over how data flows throughout your app. I didn’t get this. How is this principle violated if I decide . Tagged with ReactJS,JavaScript,Flux.


Why does React emphasize on unidirectional data flow and Flux architecture?

Create Beautiful Charts in iOS using React native –

Create Beautiful Charts in #iOS using React Native -  by @spritlesoftware #apps #appdev

  • now you can access the charts anywhere inside your application using require like this
  • Now all of that done lets look at the charts component code , to use the chart you need to first specify the chartData (now i have kept is static) and also the labels for x-y axis Lets see how we can do that.
  • The package will be installed inside the node_modules inside your current path
  • Charts are getting important in our applications day by day , users now prefer diagrammatic representations that looking at a table and understanding the data flow , is a little demonstration of how we can implement charts in iOS using react native .
  • To install and configure react-native-charts please follow the following procedures

Read the full article, click here.


@Pixeldiff: “Create Beautiful Charts in #iOS using React Native – by @spritlesoftware #apps #appdev”


Charts are getting important in our applications day by day , users now prefer diagrammatic representations that looking at a table and understanding the data flow , here is a little demonstration of how we can implement charts in iOS using react native .


Create Beautiful Charts in iOS using React native –