4 followers
Hi there 🖐Welcome to my blog. I'am a software developer. I will usually share information on software development..
Subscribe to my newsletter and never miss my upcoming articles
call() and apply() Call() and apply() functions; It allows sending an object as a parameter to another object and executing the methods of that object. The difference is that the call() function takes the variables separately. apply() takes any func...
When there is a component that should not be constantly rendered, we can wrap it with React.Memo(). We can update the components wrapped with React.Memo via props. https://codesandbox.io/s/react-memo-ts1k8?file=/src/App.js Thanks for reading :)
reduce () With the reduce method, we can reduce the values in the array to a single value. This method does not change the original array. Initial value can be defined. If the initial value is not defined, the first value of the array is the initial ...
some() With the some() method, we can loop the array elements and subject each array element in turn to a condition we specify. If even one of the array elements satisfies the condition, true is returned. If there is no array element that satisfies t...
var ; You can declare the variable "var" globally or locally. The var variable has no block scope. For example ; function sayHello() { hey = "Hello"; console.log(hey); var hey; // The definition of the variables happens when the function s...
With the useEffect hook, the properties of componentDidUpdate, componentDidMount, componentWillUnmount methods can be used. componentDidMount() : Runs when the component is first loaded, never again runs. componentDidUpdate() : Runs when the compon...