Search

Nalezeno "state": 430

Using Immer for React State Management


We make use of state to keep track of application data. States change as users interact with an application. When this happens, we need to update the state that is displayed to the user, and we do this using React’s setState. Since states are not meant to be updated directly (because React’s state...

Indian Government Breaks Silence on Crypto Regulation


The Indian government has finally spoken up about the regulatory framework for cryptocurrency it has been deliberating, providing answers to questions presented in the upper house of the Parliament of India. The government also confirmed that the report with the recommended crypto regulation...

Managing State in React using Unstated-Next


In a previous post, we saw how to manage state using Unstated. As you might recall, Unstated uses React’s built-in setState to allow you create components that can consume state by subscribing to a provider — like the React’s Context API. Well, we’re going to build off that last post by looking...

Jet Airways Sinks Further Into the Abyss as Top Executives Start Quitting


Even until last year, India’s Jet Airways was the country’s biggest privately owned airline with the biggest market share, and there was no doubt that the airline was going to continue on its growth path as the airline industry expanded in the country. However, the company’s massive debt burden...

Build a state management system with vanilla JavaScript


Managing state is not a new thing in software, but it’s still relatively new for building software in JavaScript. Traditionally, we’d keep state within the DOM itself or even assign it to a global object in the window. Now though, we’re spoiled with choices for libraries and frameworks to help...

Finite State Machines with React


As JavaScript applications on the web have grown more complex, so too has the complexity of dealing with state in those applications — state being the aggregate of all the data that an application needs to perform its function. Over the last several years, there has been a ton of great...

Managing State in React With Unstated


As your application becomes more complex, the management of state can become tedious. A component's state is meant to be self-contained, which makes sharing state across multiple components a headache. Redux is usually the go-to library to manage state in React, however, depending on how complex...

Understanding React `setState`


React components can, and often do, have state. State can be anything, but think of things like whether a user is logged in or not and displaying the correct username based on which account is active. Or an array of blog posts. Or if a modal is open or not and which tab within it is active. React...

Nahoru
Tento web používá k poskytování služeb a analýze návštěvnosti soubory cookie. Používáním tohoto webu s tímto souhlasíte. Další informace