React

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 Call Web APIs with the useEffect Hook in React — step-by-step Javascript tutorial on Progressive Robot

How To Call Web APIs with the useEffect Hook in React

In this tutorial, you’ll use the useEffect and useState React Hooks to fetch and display information in a sample application, using JSON server as a local API for testing purposes. You’ll load information when a component first mounts and save customer inputs with an API. You’ll also refresh data when a user makes a change and learn how to ignore API requests when a component unmounts.

Read more
Comment mettre en œuvre le défilement fluide dans React — step-by-step Javascript tutorial on Progressive Robot

Comment mettre en œuvre le défilement fluide dans React

Qu’est-ce que le défilement fluide ? Au lieu de cliquer sur un bouton et d’être instantanément amené à une autre partie de la (même) page, l’utilisateur y est guidé par une animation de défilement. C’est l’une de ces caractéristiques subtiles sur un site qui fait une différence esthétique.

Read more
CHAT