JavaScript

How To Create Custom Components in React — step-by-step Javascript tutorial on Progressive Robot

How To Create Custom Components in React

Custom components are independent pieces of functionality that you can reuse in your code, and are the building blocks of all applications built on the React framework. Often, they can be simple JavaScript functions and classes, but you use them as if they were customized HTML elements. Buttons, menus, and any other front-end page content can all be created as components. In this tutorial, you’ll build your own custom component, and use this distinction to organize your project’s file structure.

Read more
How To Create Wrapper Components in React with Props — step-by-step Javascript tutorial on Progressive Robot

How To Create Wrapper Components in React with Props

In this tutorial, you’ll create wrapper components with props using the React JavaScript library. Wrapper components are components that provide a default structure to display the child components. This pattern is useful for creating user interface (UI) elements that are used repeatedly throughout a design, like modals, template pages, and information tiles. You’ll use the rest and spread operators to collect unused props to pass down to nested components.

Read more
Cómo implementar el desplazamiento suave en React — step-by-step Javascript tutorial on Progressive Robot

Cómo implementar el desplazamiento suave en React

¿Qué es el desplazamiento suave? En vez de hacer clic en un botón y ser llevado de forma instantánea a una parte diferente de la misma página, el usuario navega allí a través de una animación de desplazamiento. Es una de esas sutiles funciones en un sitio web que marcan una diferencia estética.

Read more
Comment installer Node.js sur CentOS 8 — step-by-step Linux tutorial on Progressive Robot

Comment installer Node.js sur CentOS 8

Node.js est un runtime JavaScript pour la programmation côté serveur. Il permet aux développeurs de créer des fonctionnalités d’arrière-plan évolutives en utilisant JavaScript, un langage que beaucoup connaissent déjà grâce au développement web par navigateur. Dans ce…

Read more
How To Test a Node.js Module with Mocha and Assert — step-by-step Javascript tutorial on Progressive Robot

How To Test a Node.js Module with Mocha and Assert

Testing is an integral part of software development. With the right test setup, this process can be automated, saving a lot of time. In this article, you’ll write tests for a Node.js TODO list module. You will set up and use the Mocha test framework to structure a series of integration tests. Then you’ll use the Node.js assert module to create the tests themselves. Finally, you will try out testing with asynchronous code, and use hooks to prepare your test fixtures and environments.

Read more
CHAT