React: Guides and Practical Know-how | mironsoft Blog
React
-
May 5, 2026
React Hooks work even without explicit types, but usually only correctly by accident. As soon as a state can take multiple possible shapes, a ref gets used in three different ways, or a custom hook loads data from an API, typing decides whether errors surface at compile time or only for the user. This article shows how to make React Hooks type-safe from the ground up with TypeScript, from useState to your own generic custom hook.
-
May 4, 2026
Code splitting is not a one-off measure but an ongoing strategy. React.lazy and dynamic imports only load JavaScript when it is genuinely needed, but only if the split boundaries sit in the right places. Too many small chunks slow down loading through HTTP overhead. Too few prevent any benefit at all. This tutorial shows how to find the balance.
-
May 2, 2026
The Context API looks simple at first glance, but in practice it produces one of the most common TypeScript traps in React projects: a context without a real default value potentially returns undefined on every useContext call, and the compiler then forces null checks at every single use site that would actually be unnecessary. This article shows how to type the Context API from the start so that a missing provider surfaces already during testing instead of only for the user.
-
Apr 28, 2026
Anyone who only knows React on the surface knows that the Virtual DOM "makes things fast". Anyone who wants to build performant React apps needs to understand how the diffing algorithm decides what gets updated, and why keys, component identity and the Fiber architecture are the decisive factor.
-
Apr 27, 2026
Symfony as the backend framework, API Platform as the REST layer and React as the frontend form a stack where every layer plays to its strengths. The result: a type-safe fullstack application where the TypeScript client is generated from the OpenAPI schema and JWT authentication is cleanly integrated into both layers.
-
Apr 24, 2026
Few decisions in React look as small at the start and end up having as much influence on performance and code structure as the choice between controlled and uncontrolled input fields. We clarify the difference with concrete code, show the performance implications for forms with very many fields, and present hybrid approaches that combine both worlds deliberately.
-
Apr 23, 2026
Using Tailwind CSS together with React is intuitive, until class composition, conditional styles and variant systems get complex. This article covers the established best practices: clsx for conditional classes, the cn helper for merge-safe composition, and cva for type-safe variant systems in React components.
-
Apr 19, 2026
Internationalization in React is often underestimated, right up until the first multi-language requirement lands in the backlog. next-intl offers a complete i18n solution for the Next.js App Router: type-safe translations, ICU pluralization, locale-aware date and number formatting, language routing and full Server Component support without any client bundle overhead.
-
Apr 14, 2026
Address lists, invoice line items, or contact persons: as soon as a form needs a variable number of similar entries, manual array state quickly becomes a performance drag. useFieldArray from React Hook Form solves exactly this problem selectively rather than across the board.
-
Apr 12, 2026
Filters, sorting, pagination and active tabs end up in useState in many React applications, even though they are really part of the address. Storing that state in the URL instead gives you deep linking, a working browser back button and shareable links for free, without an extra store.