Перейти к основному содержимому

2 записи с тегом "useeffect"

Посмотреть все теги

Architectural Patterns for Frontend Side Effects

· 19 мин. чтения
Evan Carter
Evan Carter
Senior frontend

TLDR:

Managing Frontend Side Effects

Frontend side effects—API calls, subscriptions, timers, analytics—can turn a clean UI into spaghetti without clear boundaries. This guide covers practical patterns: organizing effects with useEffect and lifecycle hooks, separating them via service layers and use cases, and scaling with Feature-Sliced Design so effects stay isolated, testable, and maintainable.

Mastering React Hooks: An Architectural Guide

· 16 мин. чтения
Evan Carter
Evan Carter
Senior frontend

TLDR:

React Hooks Architecture

React hooks are powerful, but without clear boundaries they can turn components into tightly coupled “logic blobs.” This architectural guide explains the core hooks, the Rules of Hooks, and the most common useEffect pitfalls—then shows how Feature-Sliced Design (FSD) helps you structure custom hooks, public APIs, and feature logic for large-scale React applications.