React
React Tutorial - Learn React Basics | Poojaaa REACT Decription : React is a JavaScript library used for building interactive user interfaces, especially single-page applications. It allows developers to create reusable UI components and manage dynamic data efficiently. React is maintained by Meta (formerly Facebook) and is widely used in modern web development. 1. Use State : OPERATORS Step1 : Open Vs Code Step2 : Open New Terminal Step3 : node -v Step4 : npm -v Step5 : npx create-react-app my-app Step6 : src/App.js Step7 : App.js(Replace) import React, { useState } from 'react'; import './App.css'; function App() { const [num1, setNum1] = useState(0); const [num2, setNum2] = useState(0); const [result, setResult] = useState(''); const calculate = (op) => { const n1 = parseFloat(num1); const n2 = parseFloat(num2); let res = 0; ...
Comments
Post a Comment