Amy Blankenship
Oct 13, 2022

--

JavaScript does have proper value types. The issue is that each render of a Component is a new closure. That's what makes the function reference unstable.https://medium.com/codex/everything-you-thought-you-knew-about-react-functional-components-is-wrong-baf2dfc4f6f

--

--

Amy Blankenship
Amy Blankenship

Written by Amy Blankenship

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

Responses (1)