Redux

Today all of us, Cobalt Sign alchemists, gathered in the Zen Room at 1pm sharp and we knew

It was time for the 2nd ever [Cobalt Matters]: Redux & React Native

Our dev team is fluent in Swift, Java and C#, yet for around one year now – when React Native was only one year young – we started working with this new technology Facebook built. React enables us to, on the one hand, build native apps and, on the other, enhance our own native apps – like the stylish Ready Set Holiday! travel organizer – with actual React Native components for both iOS & Android.

Sounds great, I would say, so ➡ let’s dive in.

Using Redux as a state container, together with React, helps us develop apps even easier & faster than before, some of our team mates would say.

During this session of [Cobalt Matters], we used one of the apps, we are currently working on, as a case study and went through the framework’s features & best practices while keeping an open mind by following up with many constructive questions on how Redux holds up compared to i.e. MVC.

yera in review

Here are our take-aways on Redux, in a nutshell:

  • Each and every change of state refreshes the React Native page component.
  • A component of the app is best styled individually.
  • The app’s local state can store important & often required information throughout the app, like the user’s profile data.
  • Actions can include props, if needed.
  • Reducers will process information from actions and change the state of the app accordingly. This always leads to refreshing the current page.
  • Dispatchers help create actions and send them to the reducers.

As every cross-platform approach, React Native also has it’s own little quirks and things that do not go as expected or as fast as one developer would want to and there are will always be things to improve and for us, developer, to learn.

When using Redux, we need to think differently compared to how we generally do when developing apps on iOS or Android and I think, I can speak on behalf of all of us at Cobalt Sign involved in developing apps with React Native, that we really do like Redux as it eases our daily coding and makes app development in some aspects faster.

Stay tuned for future [Cobalt Matters] discussions.

All rights reserved Cobalt Sign.