MilkJar·Dec 5, 2020You might be misunderstanding the React useCallback hookRecently I received a comment on a blog post. It suggested that the event handler functions in my code example should be wrapped with…A response icon1A response icon1
MilkJar·Jun 20, 2020Pass parameters to React event handler without wrapping the functionIts common to need to pass arguments to a React event handler (such as onClick or onChange) when a button is clicked or radio input…A response icon5A response icon5
MilkJar·Aug 31, 2017Sequentially process a list of asynchronous tasks using array reduceWe can use Array.reduce and Promises to sequentially process a list of async actions, such as XHR requests, ensuring they are processed in…
MilkJar·Nov 16, 2016A quick tour of JavaScript primitivesPrimitives are the simplest elements of a programming language. JavaScript currently has six primitive types: string, number, boolean…
MilkJar·Oct 24, 2016Using ES6 to create a tiny, functional libraryThe code related to this post: https://github.com/dvemac/tinyfun