← Back to blog
2026-10-04#react

Five habits for cleaner React

Small rules that keep components easy to change.

Five habits for cleaner React

1. Name things for what they do

A good name saves a comment.

2. Keep state close

Lift it only when two components need it.

3. Prefer plain functions

Hooks are great, but a helper is often enough.