Profile Picture

Sirwan Afifi

Stories from a web developer.

© 2020. Sirwan Afifi All rights reserved.

Redux

Redux is a predictable state container for JavaScript apps. The whole state of your app is stored in an object tree inside a single store…

Initializing state using class field declaration

If you want to initialize state in a class based component we have two options: In constructor As a class property For class based…

Flux

What's Flux? A design pattern developed at Facebook to keep data flowing in one direction (unidirectional data flow) An alternative to MVC…

Building Ionic React App

Make sure you have Node.js installed (https://nodejs.org/dist/v12.13.0/node-v12.13.0-x86.msi) Open command prompt and type in this command…

Testing React Components

comes with a built-in test runner called which is basically a tool for executing unite tests and also reporting the result. To run the test…

Higher-Order Components

Before we get started, we need to understand what a higher-order function is. In JavaScript functions are first-class citizens because they…