Javascript

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 Make Your Vue.js Application DRY with Slots, Mixins, and Composition API — step-by-step Javascript tutorial on Progressive Robot

How To Make Your Vue.js Application DRY with Slots, Mixins, and Composition API

DRY is a programming strategy that stands for “Don’t Repeat Yourself”. It encourages code re-usability through modular architecture. Vue.js includes several strategies to modularize and re-use repeated snippets of code. In this tutorial, you will try out layout components with slots, mixins, and the new Composition API to implement the DRY strategy in an example app.

Read more
CHAT