Archive for January 2024

What 3 dots does in React or Typescript

Three dots {…props} decompiles array and used to merge an array with individual variables const linkProps = { …props, …(customname === true ? { passHref: true } : {}) }

git reset single file

git reset — path/to/file git checkout — path/to/file