State management in front-end application

You can find plenty of examples showing how state management libraries work, few people focus on it why do we need state management and what problems does it cause (solve?). In this article I will walk you through, step by step, what common application state issues might look like applications and how to deal with them regardless of whether you use because it doesn't matter what you use, only for what purpose.

Read more

Submit button outside a form

button is an element that can perform an action or trigger an event when clicked. It can have one of three types: submit, reset, or button. In this article, we will take a look at how to add submit button outside a form.

Read more

Display an error message in the admin panel if a plugin is not activated in WordPress

As a WordPress theme developer, you may encounter situations where a plugin is required to use a particular functionality on a theme. In such cases, it's important to check if the required plugin is installed and activated. If the plugin is not installed, it is nice to display an error message to inform the user that the feature is not available and that the plugin needs to be installed.

Read more

Get multiple aliases at once without callbacks in Cypress

Aliases are a powerful feature in Cypress that allows you to create references to elements on a web page and use them in subsequent commands. However, it can be tedious to get multiple aliases one by one, especially if you need to reference a large number of elements. See how to write a command to get many aliases at once.

Read more

Lifecycle hooks as observable

One of trait of lifecycle in components and directives is that, you can not observe it. If you must do something within one of this lifecycle, you have to declare variable first and then assign value in hook. This can cause some problems, but there is a very simple solution. Check how you can omit this in a very easy way.

Read more