Skip to content

Instantly share code, notes, and snippets.

View meeschka's full-sized avatar

Michelle Linley meeschka

  • Toronto, Ontario
View GitHub Profile
@meeschka
meeschka / nvmCommands.js
Last active November 25, 2021 16:03 — forked from chranderson/nvmCommands.js
Useful NVM commands
// check version
node -v || node --version
// list installed versions of node (via nvm)
nvm ls
// list available versions of node (via nvm)
nvm ls-remote
// install specific version of node
@meeschka
meeschka / Subject under test
Created August 21, 2020 14:35 — forked from mauricedb/Subject under test
Testing stateful React hooks
import { useState } from 'react';
export function useCounter(initial = 0) {
const [count, setCount] = useState(initial);
return [count, () => setCount(count + 1)];
}