News for hackers. Stuff that matters.
Re:Show HN: 33 line React by leontrolski on Saturday April 04, 2020 @06:34AM (#22777446)
Agreed, let me know if you find a better way! I feel if the browser APIs were slightly more declaratively inclined, this article could be "10 line React".
Re:Show HN: 33 line React by manthideaal on Saturday April 04, 2020 @08:05AM (#22777784)
to merge the properties of two objects you could use

  let merged = {...obj1, ...obj2};  See (1) which has 2808 votes.
(1) https://stackoverflow.com/questions/171251/how-can-i-merge-p...