MilkJarYou 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…Dec 5, 20201Dec 5, 20201
MilkJarPass 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…Jun 20, 20205Jun 20, 20205
MilkJarSequentially 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…Aug 31, 2017Aug 31, 2017
MilkJarA quick tour of JavaScript primitivesPrimitives are the simplest elements of a programming language. JavaScript currently has six primitive types: string, number, boolean…Nov 16, 2016Nov 16, 2016
MilkJarUsing ES6 to create a tiny, functional libraryThe code related to this post: https://github.com/dvemac/tinyfunOct 24, 2016Oct 24, 2016
MilkJarDecoding non-trivial JSON data in ElmTrying to decode the following JSONSep 15, 2015Sep 15, 2015