You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey great little library! I've been implementing some of these ideas into my own project with some slight changes. One of my favourite things so far is being able to deconstruct props/state with default values instead of needing to use getDefaultProps:
Thanks! I must say that using this functional wrapper has been a breath of fresh air over relying on this. I'm curious to why you opted for only passing props/state as an object rather every dependency as a object that can be deconstructed in every function?
Hey great little library! I've been implementing some of these ideas into my own project with some slight changes. One of my favourite things so far is being able to deconstruct props/state with default values instead of needing to use
getDefaultProps
:However I did notice that in your handler wrapper that the original event isn't passed through:
https://github.com/aickin/functional-react/blob/master/index.js#L26
I ended up changing the handler wrapper to pass in e as the 2nd argument but I thought it would be worth mentioning.
The text was updated successfully, but these errors were encountered: