Author: Sachin Shintre
Load Your Widgets In The React-Redux Application
I got an interesting requirement for my React app to display multiple widgets with the following conditions:
- Number of widgets to displayed – UNKNOWN
- Content to be displayed – UNKNOWN
- API endpoints – UNKNOWN
- Only known thing was the placeholder in the widgets where data needs to be displayed
- Need to display loader for each API call
Fortunately, an API was available to get details such as the number of widgets and their endpoints.
As per the requirement to display loader for each API call, the first screen was:
|
When the first API returns the response containing details regarding widgets such as the number of widgets and their endpoints, the above widget should turn into the following screen if there are 4 widgets data returned by initial API call:
![]() |
| screen 2 |
And each of the widgets will call different APIs to get the data it needs…
View original post 524 more words
How To Choose The Testing Framework For Your React Application
Recently, while working on a React/Redux based single page application, I was required to choose a testing framework. Since this was my first attempt at testing JavaScript based front-end applications, I started googling around to find the best possible tool to automate testing of my application. It was not long before I ended up being totally confused. Do you know why?
Because there are too many to choose from and it’s tough to decide, since they all do basically the same thing:
- Describe what you’re testing
- Set up what you’re going to test
- Assert whether the thing did what you expect
Having said that, when you have to choose, no matter how hard it is, you have to choose.
Test tools can be divided based on functionalities that they provide. Some provide us with only one functionality, and some provide us with a combination. It’s common to use a combination of…
View original post 755 more words

Initial Loader screen 