Skip to content

Instantly share code, notes, and snippets.

View abhinavsingi's full-sized avatar

Abhinav Singi abhinavsingi

  • Gurgaon, Haryana, India
View GitHub Profile
@abhinavsingi
abhinavsingi / cloudSettings
Last active May 27, 2020 12:39
Visual Code Settings
{"lastUpload":"2020-05-27T12:39:37.129Z","extensionVersion":"v3.4.3"}
@abhinavsingi
abhinavsingi / ReactConf2019.md
Last active November 10, 2019 12:23
React Conf 2019 Summary

tl;dr for React Conf 2019 ## (Only for videos I viewed)

  1. React-dom is just a wrapper for implementing native methods.
  2. One can write it themselves and implement for any host.
  1. Instead of governing how a component looks via props, implement multiple variants of it. Ex. Buttn --> PrimaryButton, SecondaryButton, etc.
  2. When a component props are boolean only - one can prefer to have multiple variants instead since whenever we’re calling we already know which one we want.
@abhinavsingi
abhinavsingi / object-assign-example.js
Created June 10, 2018 07:07
Usage of Object.assign
const obj = {};
for(i=0;i<100000;i++){
obj[i] = 'some long string which will need to be copied';
}
const obj2 = {key: 'This is final object'};
const final = Object.assign({}, obj2, obj);