Today I had to face form definition in react and I was afraid to some kind of repeatitive task.I looked for in in google, I found formik, react-redux-form, but I see it too complex, or too heavy. I am using reactstrap for frontend and maybe there is a premium library for form, but I am […]
Tag: redux
I stopped the data flow – on React best practices
Reading the interesting article from Dan Abramov:https://overreacted.io/writing-resilient-components/ I stopped at memoization. I did not know this technic before, but simply because nobody care so much about names before functional programming. And so I discovered how large is the cover of react hooks, useMemo() that does https://github.com/alexreardon/memoize-one In a cleaner way with the hook, in my […]
How to define Higher Order Function with elegance
I need some moment to fully understand this: const compose = ( …fns ) => fns.reduce( ( f, g ) => ( …args ) => f( g( …args ) ) ); reduce method is trickly: when initialValue is not given, the first element of the array is taken as first argument of reduce’s callback parameter, […]