adds code


Welcome To Code Bengali Channel we will see Conditional (ternary) operator in ReactJs. The React useState Hook allows us to track state in a function component. State generally refers to data or properites that need to be tracking in an application. Initialize useState We initialize our state by calling useState in our function component. useState accepts an initial state and returns two values: The current state. A function that updates the state. Initialize state at the top of the function component. import { useState } from "react"; function FavoriteColor() { const [color, setColor] = useState(""); } Notice that again, we are destructuring the returned values from useState. The first value, color, is our current state. The second value, setColor, is the function that is used to update our state. These names are variables that can be named anything you would like. ***************** Must Watch Video ****************** ➡️ Function Return in JavaScript--:: https://youtu.be/F6KIP8_zwtI ➡️ JavaScript Scope Local Global--:: https://youtu.be/HE1RHbcCNzQ ➡️ JavaScript Events --:: https://youtu.be/VSa2agFUdCM ➡️ While Loop in JavaScript --:: https://youtu.be/UDAa7TDJpmE ➡️ do While Loop in JavaScript --:: https://youtu.be/rXbe89ThlfI ➡️ For Loop in JavaScript --:: https://youtu.be/MVKYPW9QY-k ➡️ Even or Odd find in JavaScript --:: https://youtu.be/LHjnzGDIgfY ➡️ Break and Continue in JavaScript --:: https://youtu.be/VzIz27DQUbQ ➡️ JavaScript object--:: https://youtu.be/r6mlQdcgCaw ➡️ For In Loop in JavaScript--:: https://youtu.be/jO2RtnpQGQ4 ➡️ Date Objects in JavaScript--:: https://youtu.be/0bNzhTQKpsg ➡️ Destructing Arrays in JavaScript--:: https://youtu.be/ocQmQbIh7Lw ➡️ Creating an Array in JavaScript--:: https://youtu.be/WR8UW9u7FFo ➡️ Update And Delete Arrays Element--::https://youtu.be/Sk8J3B2LwmE ➡️ Sort and reverse Array method--::https://youtu.be/A2ttwvmGL6Y ➡️ push And pop Array method--::https://youtu.be/EORxDtjaWxY ➡️shift And unshift Array method--::https://youtu.be/Pqiiqhc_bXg ➡️slice And splice Array method--::https://youtu.be/6uCGKK9DG9A ➡️Objects Destructuring in JavaScript--::https://youtu.be/kzrlIjlzJP4 ➡️Swap Two Variables JS Program--::https://youtu.be/QKQmAIShA9c ➡️is Array Method in JavaScript--::https://youtu.be/ISg3T2HcZMA ➡️swap the variable's values--::https://youtu.be/mca-xrjXFyY ➡️Array forEach in JavaScript--::https://youtu.be/pug8tULgiGI ➡️indexOf and lastIndexOf Method--::https://youtu.be/PabypszSCSA ➡️includes Method in JavaScript --::https://youtu.be/QSmLcOHNR0U ➡️number is Positive, Negative, --::https://youtu.be/61uiZgM4V14 ➡️Find the Largest Three Numbers --::https://youtu.be/gKjnoe2yXOA ➡️max Method Find Largest value --::https://youtu.be/sI_s9rkQqIc ➡️Square Root of a Number --::https://youtu.be/5vxTU7jbZjo ➡️Calculate the Area of a Triangle --::https://youtu.be/D6nmd-1KMpQ ➡️inner height of the browser--::https://youtu.be/y6Mv_egsy9k ➡️inner Width of the browserr--:https://youtu.be/Hm59pgV0wD8 ➡️Open and Close new Window--:https://youtu.be/m7_XJRdDX94 ➡️moveTo new Window Method--:https://youtu.be/JFoRTW6yv4s ➡️moveBy new Window Method--:https://youtu.be/SiR8qowt5Xw ➡️resizeto resizeby --:https://youtu.be/83ietPEQdnM ➡️oninput Event In JavaScript --:https://youtu.be/ald2W4PQzZU ➡️scrollBy And scrollTo --:https://youtu.be/IAB3E34-Hgo ➡️ Miles to kilometers Convert --:https://youtu.be/ofNI178nJ74 ➡️ Celsius to Fahrenheit Convert --:https://youtu.be/Bv0ZYevuS7A ***************** React JS Tutorial ****************** ➡️ React JS Environment Setup --:: https://youtu.be/8A92a534MZU ➡️ React Folder Structure And NPM --:: https://youtu.be/Gv4t40FAhfM ➡️ React JSX and React Render --:: https://youtu.be/v-MnPDHkvO4 ➡️ Fragments in React --:: https://youtu.be/zBQfCRx2tss ➡️ Expressions in JSX --:: https://youtu.be/H2Utml_uxg4 ➡️ JSX Attribute in React --:: https://youtu.be/a929qR_YvgM ➡️ CSS in React JS--::https://youtu.be/tqIGMppDMxs ➡️ Google Fonts in React JS--::https://youtu.be/yVfnRdcQGJ4 ➡️ internal And inline Css--::https://youtu.be/SxkPCb2ZnuU ➡️ Components in ReactJs--::https://youtu.be/QM-IPrQTxHU ➡️ Props in ReactJs--::https://youtu.be/XjwoTpaZEuU ➡️ Array of an object in ReactJs-::https://youtu.be/SMssq8cPFFQ ➡️ map Method in ReactJs-::https://youtu.be/VEY1YQN5afM ➡️if else statement in React JS-::https://youtu.be/RGDNiU0HXfU ➡️React Developer Tool-::https://youtu.be/qo34sBw-34c ➡️Conditional (ternary) operator-::https://youtu.be/Ii1G3KIuk2A ***************** Node JS Tutorial ****************** ➡️ Install Node JS Node.JS Script--::https://youtu.be/QNKQAkSMKcY ➡️REPL in NodeJS--::https://youtu.be/pH8aQWabYxI ➡️REPL in NodeJS Module and method--::https://youtu.be/AkfjMYXQN-s ➡️File System Module in Node.js--::https://youtu.be/3n8iVyip3r8 ➡️Async File System Module in Node.js--::https://youtu.be/YZaKskagXDI Please support my channel by SUBSCRIBE to my channel and share my videos in your Social Network.
Previous Post Next Post