Home / Companies / Rescale / Blog / Post Details
Content Deep Dive

Addressing valueLink deprecation in React 15

Blog post from Rescale

Post Details
Company
Date Published
Author
Rescale Engineering
Word Count
655
Company Posts That Month
5
Language
English
Hacker News Points
-
Post removed?
No
Summary

React version 15 has deprecated the use of the valueLink property, which was previously utilized for two-way binding between form element values and component state properties. The recommended approach now involves explicitly specifying the value as a prop and providing an onChange handler. At Rescale, where the use of valueLink was prevalent, this change led to the adoption of a custom implementation using a factory function to generate onChange handlers. This approach supports both simple component states and states referencing immutable objects, eliminating the need for mixins like react-addons-linked-state-mixin, which may face deprecation. The custom solution enhances flexibility by allowing for easy comparison, reversion, or abandonment of changes, while also facilitating deep modifications of immutable objects without relying on deprecated dependencies.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.