coinpayu
Showing posts with the label ReactShow all
Create nested array from flatten array which has corresponding flatten arrays using javascript

Without any external JS like underscore.js, lodash.js, If you want to create a nested array from flatten array which has corresponding flatten arrays, just do this simple method like below, Original array,   [     { "…

CountDown Timer using React Hooks

Photo by Lukas Blazek on Unsplash   Repeated countdown timer using React hooks, Use the useState() hook to create a state variable to hold the time value, initialize it from the props and destructure it into its components. Use…

React Theme Switcher based on Theme JSON (without 3rd Party Libraries)

In this article, we'll be creating a theme switcher using theme.json, context API, and of course, react. And we can also able to switch between multiple themes and set the mode(light, dark) in corresponding theme.  No ne…