LaunchPadLab / lp-utils

Our Utilities
MIT License
1 stars 0 forks source link

allow string argument #18

Closed davemcorwin closed 7 years ago

davemcorwin commented 7 years ago

passing a string 'function name' to onmount causes it to find the prop with that name and execute the function. This seems more ergonomic than the previous approach bc we can use mapDispatchToProps as normal.