ianstormtaylor / react-values

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

How is it different from react power-plug ? #26

Closed collegeimprovements closed 6 years ago

collegeimprovements commented 6 years ago

How is it different from react-powerplug ? What are the pros of using react-values over react-powerplug ?

erickreutz commented 6 years ago

https://github.com/ianstormtaylor/react-values/issues/11

ianstormtaylor commented 6 years ago

Hey @collegeimprovements, I think if you read the two readme's you can get a pretty good sense of where the libraries differ, so I won't go over all of those again. But a few big differences in principles/goals that may be less obvious:

There are probably other differences. There are absolutely things that you can do out of the box with react-powerplug right now that you cannot do with react-values out of the box. But I think the approach of providing simple primitives that you can use to build more complex behaviors is the most flexible solution. And it lets you build your own custom helpers for more advanced logic whenever you need.