It’s always enthusiastic to start a project from scratch and have full control to it, decide which technologies or architecture to use the feeling of freedom to refactor or rewrite whatever you want it whenever you want it, without having to explain or fight with the rest of the team.

But wait a second!! IT world is not a solo game!! isn’t it? Software development is like a cooperative board game, everyone wins or everyone loses and like all cooperative games, you must take into consideration all your teammates before taking any actions and in a timeline scale, we should…

The react-testing-library is a very light-weight solution for testing React components. It provides light utility functions on top of react-dom and react-dom/test-utils, in a way that encourages better testing practices. It renders the components and provides utility methods to interact with them. The idea is that you should communicate with your application in the same way a user would.

“Better Test”!?

To answer this question you can ask another question, Why do we write tests in the first place?

There’s one main reason for writing tests and that’s that it gives us confidence in the product that we're shipping confidence that…

Within any function, you can use the arguments variable to get an array-like list of all of the arguments passed into the function.

The arguments parameter It is a local variable accessible within inside functions and contains an entry for each argument passed to that function. The arguments is an Array-like object which can be used to access arguments passed to the function even if a matching parameter isn’t explicitly defined.

function add() {

// Set a starting total
var total = 0;

// Add each number to the total
for (var i = 0; i < arguments.length; i++) {
total += arguments[i];

// Return to the total
return total;

Mohammed Nokri

Frontend Developer sharing weekly JS, HTML, CSS 🔥

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store