ianstormtaylor / react-values

A set of tiny React components for handling state with render props.
https://git.io/react-values
MIT License
1.02k stars 39 forks source link

add `disabled` prop #4

Closed ianstormtaylor closed 6 years ago

ianstormtaylor commented 6 years ago

I think it would be helpful to have a disabled prop that each of the components respected. When disabled no transforms take effect even when called. Makes it easy to "disable" any component that way without having to check some other state each time you want to transform.

ianstormtaylor commented 6 years ago

Released in 0.2.0!