Skip to content

Instantly share code, notes, and snippets.

View abhinavsingi's full-sized avatar

Abhinav Singi abhinavsingi

View GitHub Profile
{"version":1,"resource":"file:///Users/abhinavsingi/Desktop/Desktop/git/unifyapps/www/packages/carbon/src/no-code/utils/recursiveUpdate.ts","entries":[{"id":"8Zgu.ts","timestamp":1724580364796},{"id":"fjTU.ts","timestamp":1724678874731}]}
@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);