Skip to content

Instantly share code, notes, and snippets.

View ArunRamachandran's full-sized avatar

Arun Ramachandran ArunRamachandran

View GitHub Profile
@dandelionadia
dandelionadia / Search.jsx
Created October 4, 2019 14:05
react functional component debounce
import React, { useState, useRef } from 'react'
import debounce from 'lodash.debounce'
const Search = () => {
// state text which was written in the input
const [value, setValue] = useState('')
// using "useRef" so that React doesn't create
// debounced function on each render (after state update).
const doSearch = useRef(
@chranderson
chranderson / nvmCommands.js
Last active July 11, 2024 23:08
Useful NVM commands
// check version
node -v || node --version
// list locally installed versions of node
nvm ls
// list remove available versions of node
nvm ls-remote
// install specific version of node