acdlite / recompose

A React utility belt for function components and higher-order components.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Key advantages in Docs

bmaclean opened this issue · comments

Under the "key advantages" section of the docs, is the point:

They help prevent abuse of the setState() API, favoring props instead.

still relevant, given that modern functional components could abuse the useState API? Just came across this and was wondering if it was outdated.

commented

Indeed, some parts of Recompose’s advantages can be replaced by React hooks.

commented

Considering state management, hooks are simpler (and faster?).