Articles
Previous articles
2 minutes read
ReactNode or PropsWithChildren
How to properly type children in React. Differences between PropsWithChildren and ReactNode in TypeScript.
4 minutes read
Positioning an element using the anchor method
The anchor method in CSS allows you to position DOM elements, giving you more flexibility than positioning using relative and absolute positions.
4 minutes read
Replace useState with typed useReducer
useReducer with TypeScript will perfectly clean the component of excessive useState and store part of the code, separating the component from the logic.
2 minutes read
Separate the logic from the UI layer with the Enum type
How to use Enums correctly in TypeScript to avoid errors and facilitate application development.
4 minutes read
Aria attributes you should know
ARIA's most commonly used attributes to support users using assistive technologies.
4 minutes read
Adapter Design Pattern
The Adapter pattern creates a class, covering part of the code with an additional abstraction, providing a versatile interface.
7 minutes read
Strategy Design Pattern
The Strategy pattern change the behavior of an object without modifying the code. It relies on defining a set of algorithms that can be swapped at runtime.
3 minutes read
Comparing satisfies operator with type assertions
Using type assertions and satisfies in TypeScript. What are the differences and how to type objects correctly to avoid errors.
2 minutes read
Why you should call the function in useState
Get rid of unnecessary, expensive function calls with lazy initialization.