Amy Blankenship
Jun 10, 2022

--

When you're using hooks, you're not doing FP. The thing that makes FP "a thing" is that every time you run a function with the same inputs, you get the same result. This is _not_ what happens with React hooks. React hooks have a hidden registry storing the state of the component/hook, so it's really just doing the same thing as a Class, only with more hand-waving.

--

--

Amy Blankenship
Amy Blankenship

Written by Amy Blankenship

Full Stack developer at fintech company. I mainly write about React, Javascript, Typescript, and testing.

Responses (2)