Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react merge two objects

const object1 = {
  name: 'Flavio'
}

const object2 = {
  age: 35
}

const object3 = {...object1, ...object2 }
 
PREVIOUS NEXT
Tagged: #react #merge #objects
ADD COMMENT
Topic
Name
2+2 =