ajaybaraiya6.hashnode.devHow React serves?When you do. npm start index.html will be served in web browser. Now, index.html contains root dom node and as it served the control goes to it's javascript file which is index.js. Now, the index.js having below rander function. ReactDOM.render( <...Sep 24, 2022·1 min read
ajaybaraiya6.hashnode.devAsync and Await #JS mordern concept.Async and Await enteres in to handle complexity of Promises. Which is a call back of hell problem, to make it look like synchronous but it's act asynchronous and non-blocking behind the scenes. const myFunction = () => { return 'Test'; } // Normal fu...Sep 17, 2022·2 min read
ajaybaraiya6.hashnode.devEvent Loops Immediate Calls #JS Quick Notes.You don't have to strugle about what is happening as in your application you just need to know which event will be called and when. Remeber below sequance. 1) process.nextTick(); process.nextTick(functionBlockToExecute.); //Function here will be call...Sep 17, 2022·1 min read
ajaybaraiya6.hashnode.devLoop functions in synchronous way #React Quick Notes.We all know term called Recursion. That is same we are doing in below example to loop through multiple functions which should execute one after another. This is one of the ways we can achive function serialization and can be usfull to your applicatio...Sep 17, 2022·1 min read
ajaybaraiya6.hashnode.devBasic Commands #Node.js Quick Notes.1. npm install //Global Node module installation. 2. npm install <package-name> //Install specific package and adds it to package.json file which holds file dependencies. 3. npm update //Update all packages for newer version. 4. npm update <package-n...Sep 11, 2022·1 min read