Skip to content

Instantly share code, notes, and snippets.

View moonmeister's full-sized avatar

Alex Moon moonmeister

View GitHub Profile
@moonmeister
moonmeister / classNames.js
Last active April 27, 2023 20:59
A modern version of Classnames
function append(acc, arg) {
return acc + arg + ' ';
}
export function classNames(...args) {
let classes = '';
for (const arg of args) {
if (!arg) continue;
const argType = typeof arg;
@moonmeister
moonmeister / machine.js
Last active September 17, 2020 07:39
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions

Keybase proof

I hereby claim:

  • I am moonmeister on github.
  • I am moonmeister (https://keybase.io/moonmeister) on keybase.
  • I have a public key ASC2Gm1PEPwvM-p51osLrnUiyZquf6LCV5pm_ybOfjsydAo

To claim this, I am signing this object: