Karan ◢◤ (@anmolzuck) header
Karan ◢◤ (@anmolzuck) profile picture

Software Developer 👨‍💻| Love @javascript | Tweets are about React and web development | Follow my journey✌🏻

Joined January 2020
Photo by Karan ◢◤ (@anmolzuck)Photo by Karan ◢◤ (@anmolzuck)Photo by Karan ◢◤ (@anmolzuck)Photo by Karan ◢◤ (@anmolzuck)Photo by Karan ◢◤ (@anmolzuck)Photo by Karan ◢◤ (@anmolzuck)Photo by Karan ◢◤ (@anmolzuck)
A Simple Budget Calculator Using Vanilla JavaScript 😊 #javascript #CodeNewbies #100DaysOfCode #programming #webdevelopment
15
24
101
Like if you are learning React .
1
10
React Tip - Re-evaluation of react component != Re-rendering of the DOM. #ReactJS #webdev
1
6
What is React.memo and how to use it in React - *React.memo is a higher order component. *If a react component renders the same result given the same props, we can wrap it in a call to React.memo for a performance boost in some cases by memoizing the result. #reactjs #webdev
1
4
* React.memo tells react that for component passed to it as argument, react should compare the old values of props with the new value of props . *Only if the value of props changes , the component should be re-executed and re-evaluated .
1
1
Virtual Dom Diffing in React - When the VDOM gets updated, React compares it to to a previous snapshot of the VDOM and then only updates what has changed in the real DOM. If nothing changes the real DOM wouldn't be updated at all this proces is called VDOM diffing . #reactjs
1
5
A thread on how React works behind the scenes 🧵 * React doesn't know anything about the web , infact it knows nothing about the browser at all . React only knows how to work with components , but it doesn't care whether the components contains HTML or anything else. #ReactJS
1
5
* Everything that happens on the UI part is handled by the React DOM. React DOM is the interface to the web . * React passes all its information like state changes and components to the React DOM , because it is React DOM that manages what the users sees on the frontend side.
1
Sometimes Javascript makes me feel like I am a genius and sometimes it makes me feel insane. #javascript #webdev #programming
2
1
10
React tip - * You can store JSX content in a variable . Example const content = <h2> I am Jsx content</h2> #react #javascript #webdev #100DaysOfCode
3
9
What are props in React ? * Props allow us to pass data between different components. * Props are used to make a component reusable by passing data to it. * Think of it as parameters of a function , which are passed to make a function reusable. #react #webdev #100DaysOfCode
2
5
8
* We can also pass a function through props . * One more key concept that many people don't know is that we can not only pass data from parent to child component but , we can also pass data from child component to the parent component by using props (bottom-up).
2
What is JSX in React ? 1- Firstly it's not HTML 2- JSX is JavaScript XML, an extension of JavaScript that allows us to write HTML in React. #webdev #React #100DaysOfCode
2
3
12
3- We can't run JSX directly into the browser, because browsers can't read it . We need to transform our jsx into native javascript and HTML which browser can understand .
2
What is a React Component ? *React is all about components *Components are independent and reusable pieces of code . *They are same as javascript functions but they return JSX via a render() function . #React #100DaysOfCode #webdev
1
5
12
Built a real time chat application using Socket io💬 #javascript #webdevelopment #CodeNewbie #NodeJS
8
8
32
Way to change the size of thread pool in #Nodejs 👇 It can be changed at startup time by setting the UV_THREADPOOL_SIZE environment variable to any value. process.env.UV_THREADPOOL_SIZE = Number of threads (absolute max is 128). #javascript #CodeNewbie #100DaysOfCode #code
4
17
What is thread pool in #Nodejs? *Node js is single threaded so in order to prevent event loop from blocking , event loop offloads heavy tasks to the thread pool . *Thread pool provides 4 extra threads for execution but can be increased . #javascript #CodeNewbie #100DaysOfCode
4
15
What is Event Loop in #Nodejs? *In one line Event Loop is the heart of our node js application *The event loop is what allows Node.js to perform non-blocking I/O operations despite the fact that JavaScript is single-threaded . #javascript #CodeNewbie #100DaysOfCode
12
22
Someone please explain this to me 👇 * What is the use of console.error() for displaying error although the same can be done using console.log() ? #javascript #programming #100DaysOfCode
1
1
8
Reading and writing files using #javascript * Include file system module const fs = require('fs') *Synchronous way to read and write 👇 fs.readFileSync( path, options ) fs.writeFileSync( file, data, options )
1
4
13
*Asynchronous way to read and write 👇 fs.readFile( filename, encoding, callback_function ) fs.writeFile( file, data, options, callback ) #100DaysOfCode #nodejs #programming #webdevelopment
5
11
What is Node js ? *Its a javascript runtime in which a program written in javascript can be executed but outside of the browser . *V8 engine runs the javascript code in Node js . #javascript #CodeNewbie #Nodejs #programming #100DaysOfCode
9
22