Skip to content

Instantly share code, notes, and snippets.


Abhinav Singi abhinavsingi

  • Gurgaon, Haryana, India
View GitHub Profile
abhinavsingi / cloudSettings
Last active May 27, 2020
Visual Code Settings
View cloudSettings
abhinavsingi /
Last active Nov 10, 2019
React Conf 2019 Summary

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 = {};
obj[i] = 'some long string which will need to be copied';
const obj2 = {key: 'This is final object'};
const final = Object.assign({}, obj2, obj);