100% test coverage is not enough
testing

100% test coverage is not enough…

Even if your unit tests cover everything and pass at build time, your app can still be completely broken in production. 🧐🤔

In web application development, testing is crucial. 
You can’t build a high-quality app without proper testing.

So today we will talk about TESTING. Hello, Mic, Testing 1,2,3,4 … 🎤

We test in one of two ways:

  • Manual
  • Automated
Continue reading
Standard
Flow-type
React, ReactJS

Flow: $FlowFixMe command should be $FlowFixYourself. FlowType is dying! 🧐🤔😱

First, let’s talk about what is Flow or FlowType…

From their official site –

FLOW IS A STATIC TYPE CHECKER FOR JAVASCRIPT.

From ReactJS’s site-

Flow is a static type checker for your JavaScript code. It is developed at Facebook and is often used with React. It lets you annotate the variables, functions, and React components with a special type syntax, and catch mistakes early.

Continue reading
Standard
React

Storybook : develop React components in isolation | Part-2

On the Part-1 of this series Storybook : develop React components in isolation | Part-1 , we talked about how we can setup Storybook and start working for our awesome UI-components Library.

Today we will see how we can create our first UI component and add it to Storybook. We will also see how we can see variations for the same component.

I will remove the welcome file src/stories/0-Welcome.stories.js which was created by the tool. Now our app structure looks like below-

Let’s create a new component inside src/components/Spinner.js file.

Continue reading
Standard
React

Storybook : develop React components in isolation | Part-1

Storybook is a tool for developing UI components.

The tool enables developers to create components independently and showcase components interactively in an isolated development environment.

Storybook runs outside of the main app so we can develop UI components in isolation without worrying about app specific dependencies and requirements.

After running, Storybook looks like this ☝️
Here, Button is a component.

Continue reading
Standard