Skip to content

Instantly share code, notes, and snippets.

Avatar

Abhinav Singi abhinavsingi

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

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

1. Building a Custom React Renderer | Sophie Alpert

  1. React-dom is just a wrapper for implementing native methods.
  2. One can write it themselves and implement for any host.

2. Building (And Re-Building) the Airbnb Design System | Maja Wichrowska & Tae Kim

  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.
View object-assign-example.js
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);
You can’t perform that action at this time.