React JS Smart Notes of Every Topics
React JS Essential:
--immutable vs mutable
var arr[] =[1,2,3,4]
var arr2=arr
arr2.pop(); // arr2 value 1 2 3 but arr is also 1 2 3 its a problem in reference data type
in react js there is a state which cannot be mutate( not change value directly)
var state = [1,2,3]
state.pop() // that is not allowed
--Array Objects Destructuring import and export
-- map filter arrow functions (implicit returns)
--
Array is a data structure who store more than one elements of every kind.
var arr=[]
Comments
Post a Comment