?? ?????? React? Node.js? ??????. ?? ??? ??? ?? ?? ? ???? ?? ??? ?????. ?? ??? ? ?? ?????????! ? ?? ?? ?? ??????? ??? ??? ?? ??? ?????? ????? ??? ?? ????. ?????? ?????, ??? ??? ??????? ?? ???? ?? ?? ??????? ??? ? ????. ?? ?? ???? React? Node.js? ???? ??? ?? ??? ?? ??? ??? ???????.
1??: Node.js ? Express? ??? ???
??? ???? ??? ?????. Express? ??? ???? ??? JSON ??? ??? ?????? ????.
- Express ??: ????? ?? ????? ?? ??? ???? Express? ?????.
npm install express
- ?? ??: ?? ??? ???? ???? ??? ??? ???? ??? ??? ?????.
const express = require('express'); const app = express(); const PORT = 3000; app.get('/greet', (req, res) => { res.status(200).json({ message: "Zee here..." }); }); app.listen(PORT, () => console.log(`Server is running at http://localhost:${PORT}`));
??:
- express ??? ???? express()? ???? ?? ????? ?????.
- ??? ???? ??? JSON ??? ???? ??? GET ??? /greet? ??????.
- ?? 3000?? ??? ???? ??? ??? ?? ??? ?????.
2??: React? ??? ?????
?? React? ???? ?????? ??? ?????. useState? useEffect?? ? ?? ??? ???? ????? ???? ?????.
- React ? ???: React ?? ?? ???? ?? ?? ??? ???? create-react-app? ???? ?? ?? ? ????.
npx create-react-app my-fullstack-app cd my-fullstack-app
- ????? ?? ??: ?? ????? ???? ??? ????? App.js ??? ??? ?????.
import { useState, useEffect } from 'react'; export function App() { const [response, setResponse] = useState(null); useEffect(() => { const controller = new AbortController(); // This is used to abort the fetch request if the component is unmounted const fetchData = async () => { try { const response = await fetch('http://localhost:3000/greet', { signal: controller.signal, }); if (!response.ok) throw new Error("Couldn't fetch data"); const data = await response.json(); setResponse(data.message); // Corrected the response property here } catch (error) { console.error(error); } }; fetchData(); // Clean up function to abort the fetch request if needed return () => controller.abort(); }, []); return ( <div> {response ? <p>{response}</p> : <p>Loading...</p>} </div> ); }
??:
- useState? ???? ?? ???? ???? ? ?????.
- useEffect? ????? ???? ? ???? ??? ????? ? ?????.
- ??? fetch() API? ???? http://localhost:3000/greet? ??? ??? ??? ?????. ????? ???? ???? ???? ?? ??? ???????.
- ??? ???? ?? ????? "?? ?..."??? ??? ?????.
3??: ? ??
- ??? ??: ??? ??(server.js ??? ?? ??)?? ??? ?????.
npm install express
- ????? ??: ????? ??(React ?? ?? ??)?? ??? ?????.
const express = require('express'); const app = express(); const PORT = 3000; app.get('/greet', (req, res) => { res.status(200).json({ message: "Zee here..." }); }); app.listen(PORT, () => console.log(`Server is running at http://localhost:${PORT}`));
?? ????? ?? http://localhost:3000?? ?????. ????? ??? ??? ???? ???? "Zee here..."? ?????.
??
??? ?? ????! React? Express? ???? ??? ?? ?? ??????? ??????. ?? ??? ????, ? ??? ?? ? ??? ??????? ???? ??? ? ????. ??? ?????!
?? ???:
- ? ?? ??????? ??? ??? ????. ??? ?????? ???? ????? ??? ? ????.
- React? useState ? useEffect ??? ??? API?? ???? ???? ? ?????.
- Express? ??? API ??? ?? ???? ??? ????????.
? ??? React? Node.js? ???? ??? ??? ?????? ???? ?? ?????. ??? ??? PHP ??? ????? ?? ?? ??? ?????!

? AI ??

Undress AI Tool
??? ???? ??

Undresser.AI Undress
???? ?? ??? ??? ?? AI ?? ?

AI Clothes Remover
???? ?? ???? ??? AI ?????.

Clothoff.io
AI ? ???

Video Face Swap
??? ??? AI ?? ?? ??? ???? ?? ???? ??? ?? ????!

?? ??

??? ??

???++7.3.1
???? ?? ?? ?? ???

SublimeText3 ??? ??
??? ??, ???? ?? ????.

???? 13.0.1 ???
??? PHP ?? ?? ??

???? CS6
??? ? ?? ??

SublimeText3 Mac ??
? ??? ?? ?? ?????(SublimeText3)

??? ??











Java ? JavaScript? ?? ?? ????? ??? ?? ?? ?? ???? ????? ?????. Java? ??? ? ??? ?????? ??? ???? JavaScript? ?? ? ??? ??? ?????.

JavaScriptCommentsareEnsentialformaining, ?? ? ???? 1) Single-LinecommentsERUSEDFORQUICKEXPLANATIONS.2) Multi-linecommentSexplaincleClexLogicOrprovidedEdeDDocumentation.3) inlineecommentsClarifySpecificPartSofcode.bestPractic

JavaScript?? ??? ??? ?? ? ? ?? ??? ???????. 1. ?? ??? ??? ???? ?? ??? ????. ISO ?? ???? ???? ???? ???? ?? ????. 2. ?? ??? ?? ???? ??? ?? ???? ??? ? ??? ? ?? 0?? ????? ?? ??????. 3. ?? ?? ???? ???? ???? ?? ?????? ??? ? ????. 4. Luxon? ?? ???? ???? ?????? ???? ?? ????. ??? ?? ???? ????? ???? ??? ????? ?? ? ????.

TAGGSATTHEBOTTOMOFABLOGPOSTORWEBPAGESERVESPRACTICALPURSEO, USEREXPERIENCE, andDESIGN.1.ITHELPSWITHEOBYOWNSESPORENGENSTOESTOCESKESKERKESKERKERKERDER-RELEVANTTAGSWITHOUTHINGTEMAINCONTENT.2.ITIMPROVESEREXPERKEEPINGTOPONTEFOCUSOFOFOFOCUSOFOFOFOCUCUSONTHEATECLL

JavaScriptIspreferredforwebDevelopment, whithjavaisbetterforlarge-scalebackendsystemsandandandoidapps.1) javascriptexcelsincreatinginteractivewebexperiences withitsdynatureanddommanipulation.2) javaoffersstrongtypingandobject-Orientededededededededededededededededdec

javascriptassevenfundamentalDatatatypes : ??, ???, ??, unull, ??, ? symbol.1) ?? seAdouble-precisionformat, ??? forwidevaluerangesbutbecautiouswithfatingfointarithmetic.2) stringsareimmutable, useefficientconcatenationmethendsf

??? ?? ? ??? DOM?? ??? ??? ? ?????. ??? ?? ????? ?? ??????, ??? ?? ???? ?? ????????. 1. ??? ??? addeventListener? usecapture ?? ??? true? ???? ?????. 2. ??? ??? ?? ???? usecapture? ???? ????? ?????. 3. ??? ??? ??? ??? ???? ? ??? ? ????. 4. ??? ?? ?? ?? ??? ?? ??? ??????? ??? ???? ?????. 5. ??? ?? ?? ?? ??? ?? ???? ?? ???? ? ??? ? ????. ? ? ??? ???? ???? JavaScript? ??? ??? ??? ????? ???? ???? ??? ??????.

Java? JavaScript? ?? ????? ?????. 1. Java? ???? ???? ??? ? ??? ?????? ?????? ? ?? ???? ?????. 2. JavaScript? ?? ? ?? ?? ? ??? ?? ??? ???? ??? ? ?? ? ?? ?????.
