NullVoxPopuli/react-state-helpers

View on GitHub
src/withValue.js

Summary

Maintainability
A
0 mins
Test Coverage
import { findValue } from './findValue';

export function withValue(func) {
  return e => {
    const value = findValue(e);

    return func(value);
  };
}