JS ArraysDifference between : Array() and [] , Array[integer] Array[t]- It is used to access the t index of the array. Array(t)- This is like passing t in the constructor of Array. It will generate an array with t elements in it. [ t undefined spaces it wil...Jan 5, 2023·2 min read
Promises in JsPromise The Promise object represents the eventual completion (or failure) of an asynchronous operation and its resulting value. A Promise is in one of these states: pending: initial state, neither fulfilled nor rejected. fulfilled: meaning that the...Jan 8, 2022·2 min read
Async Await In JSThe async and await keywords in JS that lets us make the functions asynchronous and enable asynchronous, promise-based behavior to be written in a cleaner style . what does the async keyword do: If we add Async keyword before any function then that...Jan 8, 2022·2 min read
Connecting Redux store with React appIn order to access and render the state properties, the React components need to connect to the Redux store. We can write React components as: Presentational components Container components Presentational Components: Presentational components ar...Jan 4, 2022·3 min read
Redux State ManagementRedux is an application data-flow architecture which is used for predicting state changes in JavaScript applications. Redux is not a framework. Redux can be used with any other View library but mostly used with React. Dan Abramov created Redux in 201...Jan 3, 2022·2 min read
React Router DOMWhy Routing ? We have to navigate from one view to another without hitting server as in contrast to MultiPage web App where the page reloads every request to change the view . So here, we have to navigate from one view to another without hitting s...Jan 3, 2022·2 min read
React Hooks1) useEffectHooks(,[]); In order to run some code after the component mounts or after the component updates, then we use componentDidMount and componentDidUpdate lifecycle methods in class based components respectively. As we cannot use these lifec...Jan 3, 2022·2 min read