antipattern

A common way of solving a problem that looks reasonable but causes bugs or extra work.

In more detail

Antipatterns are worth naming so teams recognise and avoid them. Each has a known better alternative.

Example

Typical React antipatterns are syncing state with an Effect, calling hooks conditionally, using array indexes as keys and mutating props.

Related terms

Taught in

References