Have you heard about Signals in JavaScript?

preview_player
Показать описание
Signals are a powerful way to manage state in your Preact applications. In this video, we'll explore how to use signals to simplify your code and reduce the amount of boilerplate needed to manage complex state. You'll learn how to create a signal, subscribe to it, and update the state of your application in response to changes in the signal. We'll also cover some best practices for using signals, such as creating reusable signals and using them in combination with Preact's built-in state management tools. By the end of this video, you'll have a solid understanding of how signals work and how to use them to build better Preact applications.

#webdev #javascript #robray
Рекомендации по теме
Комментарии
Автор

Vue already has no re-rendering problem. it has const x = ref('value').. and accessed through x.vlaue. so i wonder what problem it is coming to vue to solve

kwesikwaa
Автор

They are also coming to Svelte in the form of Runes

Holobrine
Автор

The fact that it doesn't re-render has nothing to do with signals tho. That's a preact behavior that they implemented with the use of signals. Signals just simplify the way we used states and subscriptions and adds some features.

dragon_lion