react-patterns
Installation
SKILL.md
React Patterns
Modern React patterns for production applications.
Hooks
Custom hooks — extract reusable logic
// useFetch hook
function useFetch<T>(url: string) {
const [data, setData] = useState<T | null>(null);
const [error, setError] = useState<Error | null>(null);
const [loading, setLoading] = useState(true);