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…2 min read·Dec 5, 2020--1--1
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…2 min read·Jun 20, 2020--5--5
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…1 min read·Aug 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…3 min read·Nov 16, 2016----
MilkJarUsing ES6 to create a tiny, functional libraryThe code related to this post: https://github.com/dvemac/tinyfun5 min read·Oct 24, 2016----
MilkJarDecoding non-trivial JSON data in ElmTrying to decode the following JSON1 min read·Sep 15, 2015----