An example of how to safely inline JSON within a script in a Jekyll template to avoid XSS attacks and to allow access to that data in your own JavaScript.
read full post…
A very short example of how to pass a function into setState in React.
read full post…
A convenience function for writing mixed color and/or font-style text using the HTML5 canvas, which is made possible by the ctx.measureText method.
read full post…
A brief redux-like example of why I think it’s useful to use curly braces around the statements after case clauses inside JavaScript switch statements.
read full post…
A quick technical guide to fixing hanging or freezing issues with Parcel when bundling a project that uses Sass with import calls.
read full post…