Posts

Showing posts from February, 2025

react element update in main

What is element in reactjs In React.js, an element is the smallest building block of a user interface (UI). It is a plain JavaScript object that describes a DOM node or a component instance. React elements are immutable, meaning that once they are created, they cannot be changed. Here's a breakdown of what you need to know about React elements: Key Concepts: * Representation of DOM nodes: React elements are not actual DOM elements. Instead, they are lightweight descriptions of what you want to see on the screen in terms of DOM nodes (like , , , etc.) or other components. * Immutability: React elements are immutable. Once you create an element, you cannot change its properties or children. This immutability helps React optimize rendering and improve performance. * Creation: You can create React elements using: * JSX: A syntax extension that looks like HTML but gets transformed into JavaScript function calls to create elements. * React.createElement(): The underlying functio...

JS rawat

Image
Chapters-Covered Q1: what is javascript? What is the role of javascript engine? Q2: what are client side and server side? Q3: what are variables? What is the difference between var,let and const? Q4: what are some important string operations in js? Q5: What is DOM? What is the difference between HTML and DOM? Q6: What are selectors in JS? ers Q7: What is the difference between getElementById,getElementByClassName and getElementByTagName? Q8: What are data types in JS? Q9: What are operations? What are the types of operators in JS? Q10: What are the types of conditions statements in JS? Q11: What is loop? What are the types of loops in JS? Q12: What are Functions in JS? What are the types of function? Q13: What are Arrow Functions in JS? What is it use? Q14: What are Arrays in JS? How to get, add & remove elements from arrays? ...