Posts

Showing posts with the label React

Store Management in React / Angular such as Redux / NgRx

Store Management   A Store (state) management library (such as Redux, Angular-Redux, NgRx etc.) gives you a convenient way to Model your application state, derive computed values from it, Monitor it for changes. Store management solves the extraneous props / inputs issue in components hierarchy. If we try to solve those scenarios with event emitters like Angular @Input() / @Output(), we will easily end up with event soup scenarios, where the events chain themselves in unexpected ways, and it becomes hard to reason about the application. It solves the problem of component interaction via the Observable pattern It provides a client-side cache if needed, to avoid doing repeated Ajax requests It provides a place to put temporary UI state, as we fill in a large form or want to store search criteria in a search form when navigating between router views It solves the problem of allowing modification of client side transient data by multiple actors       ...

Why Angular? Why Not React?

Image
A very common question. Let's search its answer. Instead of following market trends, always choose the best technology stack based on your project requirements and business needs. Lets discuss, why Angular and why not react. Why Angular? If you are already familiar with OOPs or you have C# / Java background and know dependency injection then the learning curve is comparatively low. If your application has not a dynamic UI i.e. forms are predefined and could not change at runtime. Angular is a full-fledge framework to create enterprise business applications. 70% same code for Mobile App i.e. Only Html & CSS files would be separated for Web and Mobile apps and some specific modules (Using NativeScript) Good separation between logic, markup, styles. NgModule, Modularize approach which organize the architecture of app in a better way. HttpClient Angular Module. Supports custom headers, request type, automatically parses JSON, can be streamed, piped, debounc...