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