Javascript

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
How To Deploy an Express Application and Scale with MemCachier on an app platform — step-by-step Javascript tutorial on Progressive Robot

How To Deploy an Express Application and Scale with MemCachier on an app platform

In this tutorial, you’ll deploy an Express application to an app platform and then scale it by adding caching with the MemCachier Add-On. You’ll build a sample Express app and implement several caching strategies. You’ll push your app’s code to GitHub and deploy it on App Platform. By the end of this tutorial, you’ll be able to deploy an Express application to App Platform, implementing techniques for caching resource-intensive computations, rendered views, and sessions.

Read more
How To Implement JavaScript Array Methods From Scratch — step-by-step Javascript tutorial on Progressive Robot

How To Implement JavaScript Array Methods From Scratch

JavaScript includes several functions for working with arrays that go beyond the `for` loop. You may have used these functions in your own projects and wondered how they work and why you’d use one over another. There’s no better way to ensure that you understand how something works than building your own version from scratch. In this article you are going to do just that by creating your own versions of `map`, `reduce`, `sort`, and `filter` from scratch.

Read more
How To Manage Monorepos With Lerna — step-by-step Javascript tutorial on Progressive Robot

How To Manage Monorepos With Lerna

Lerna is as a tool for managing JavaScript projects with multiple packages with features such as package bootstrapping, parallelized builds, and artifactory publication. In this tutorial, you will install Lerna, create a working directory, initialize a Lerna project, create a monorepo, bootstrap your packages, and add a dependency to the packages.

Read more
How To Share State Across React Components with Context — step-by-step Javascript tutorial on Progressive Robot

How To Share State Across React Components with Context

In this tutorial, you’ll share state across multiple components using React context. React context is an interface for sharing information with other components without explicitly passing the data as props. This means that you can share information between a parent component and a deeply nested child component, or store site-wide data in a single place and access them anywhere in the application. To illustrate this, this tutorial will create a website where users can build custom salads.

Read more
How To Use Built-In and Custom Directives in Vue.js — step-by-step Javascript tutorial on Progressive Robot

How To Use Built-In and Custom Directives in Vue.js

As a front-end framework, Vue.js borrows the prop-driven approach of React, but also uses directives, which were made popular by Angular. In this context, directives are reusable chunks of code or logic that allow you to manipulate your HTML in many different ways, such as conditionally rendering an element, connecting events to an element, or creating dynamic attributes that depend on your Vue code. This tutorial will cover v-if, v-show, v-on, v-bind, v-model, v-html, and custom directives.

Read more
Comment utiliser Font Awesome 5 avec React — step-by-step Javascript tutorial on Progressive Robot

Comment utiliser Font Awesome 5 avec React

Font Awesome est un kit d’outils pour les sites web proposant des icônes et des logos sociaux.  React est une bibliothèque de codage utilisant JavaScript pour la création d’interfaces utilisateur.  Bien que l’équipe de Font Awesome ait créé un volet React pour promouvoir l’intégration, il y a quelques éléments fondamentaux à comprendre au sujet de Font Awesome 5 et de sa structure. Dans ce tutoriel, vous apprendrez à utiliser le composant React Font Awesome.

Read more
CHAT