? ?? ??? ???? ?? ? ??? ????? ?? ??? ???? ?? ??? ???? ???? ????. RSC(React Server Components)? ?? ? ??????? ???? ???? ??? ????? ??? ?? ??? ????? ??? ???? ???? ??????. React Server ????? ????, ? ????, ??? ??? ? ??? ???????.
React ?? ????? ??????
React Server Components(RSC)? ?????? ?? ???? ???? ??? ??? React ???????. ????? ? ???? ???? ?? React ?? ??? ?? RSC? ???? ???? ?? ? ???? ??? ?????? ????? ???? JavaScript? ?? ?? ? ????. ? ?? ??? ??? ??? ??? ??????.
RSC? ?? ??:
- ?? ?? ???: ?? ??? ???? ?????? ?? ???? ?????.
- ???? ??? ????: ?? ????? ? API ?? ?? ???? ?? ???? ?????.
- ?????? JavaScript ??: JavaScript ????? ????? ??? ?? ??? ????.
- ??? ??: ?? ????? ?? ??? ?? ???? ????? ???? ?????.
React ?? ?? ??? ??
1. ??? ??
RSC? ???? ??? ?????? ?????? ?????? ???? ?? JavaScript? ?? ????. ?? ?? ?? ??? ???? ?? ??? ???? ??? ?????.
2. ???? ??? ????
RSC? ???? ?? ?? ??? ????? ??? ???? ?? ???? ??? ? ????. ?? ?? ??? ????? ? ?? ??? ?? API ??? ???? ????.
3. SEO ???? ??????
?? ??? ?? ??? ?? ??? ???? ?? ???? ? ??? ?? ? ??????? ?? ???? ??????.
4. ?? ?? ??
RSC? ?? ?? ??? ?? ?????? JavaScript? ???? ???? ?? ?? ??? ?? ???? ??? ?? ??? ?????.
React ?? ????? ??? ??????
RSC? ??? ?? ??? ???? ???? ?????? ?? ???? ?? ??? ???? ???. ??? ??? ??? ????.
- ???? ???: ??? React ????? ????? ? ??? ???? HTML ? JSON?? ?????? ????.
- ????? ?? ??: ??? ???????? ??? ????? ?? ??? ?? ??? ? ????. ?? ??, ?? ????? RSC? ???? ??? ???? ????? ?? ??? ?????.
- ????: React? ???? ??? ????? ???? ???? ???? ?? ???? ????? ????? ??? ? ????.
?? ??: React ?? ?? ??? ???? ??
React ?? ?? ??? ??? ??? ???????.
???? ??
RSC ??? ????? ?? ???? ???? React ??? ?????. Next.js? ?? ??? React 18? ???? ?????? ??????.
?? ??
1. ?? ?? ??:
// components/ProductList.server.js import fetch from 'node-fetch'; export default async function ProductList() { const res = await fetch('https://api.example.com/products'); const products = await res.json(); return ( <ul> {products.map((product) => ( <li key={product.id}>{product.name} - ${product.price}</li> ))} </ul> ); }
2. ????? ?? ??:
// components/ProductDetail.client.js import { useState } from 'react'; export default function ProductDetail({ product }) { const [details, setDetails] = useState(null); async function fetchDetails() { const res = await fetch(`/api/product/${product.id}`); const data = await res.json(); setDetails(data); } return ( <div> <h2>{product.name}</h2> <button onClick={fetchDetails}>View Details</button> {details && <p>{details.description}</p>} </div> ); }
3. ?? ?? ??:
// pages/index.js import ProductList from '../components/ProductList.server'; import ProductDetail from '../components/ProductDetail.client'; export default function Home() { return ( <div> <h1>Product Store</h1> <ProductList /> </div> ); }
?? ? ?? ??
- ?? ???: RSC? ?? ???? ????? ?? ??? ???? ???? ????.
- ?? ??: ???? ?????? ?? ?? ??? ???? ??? ????? ???? ???.
- ?? ? ????? ??: ??? ??? ?? ?????? RSC? ????? ?????.
React ?? ?? ??? ??
React ?? ?? ??? ?? ? ???? ????? ? ?? ?? ?? ??? ???? ? ???? ??? ??? ?????. Next.js? ?? ?????? ???? RSC ??? ???? ?? ??? ?? ???? ?? ??? ? ??????? ??? ? ????.
??
React Server ?? ??? ???? ?? ????? ?? ??? ???? ????? ? JavaScript? ??? ??? ???? ?? ? ??? ??? ???? ????. ??? ??? ??? ? ???? ?? ?? ??? ??? ???? ?? ??? ?????. ???? ?? ??? ??????? ???? ??? RSC? ??? ???? ? ?????.
?????? React Server ?? ??? ???? ???? ?? ??? ???? ??? ??? ??????!
? ??? React ?? ????: ?? ? ??? ??? ????? ?? ?????. ??? ??? 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)

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

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

ES ??? CommonJS? ?? ???? ?? ?? ? ?? ???????. 1. Commonjs? ????????? Node.js ?? ? ??? ?????. 2.ES ??? ???????? ????? ?? ???? ??? ?????. 3. ??, ES ??? ?? ??/????? ???? ??? ??? ?????? CommonJS? Quiew/Module.exports? ???? ???? ???? ?? ? ? ????. 4. Commonjs? Express? ?? ???? Node.js ? ?????? ?? ???? ?? ???? ?? ES ??? ?? ??? ?? ??? ?? ? Node.jsv14? ?????. 5. ?? ? ? ??? ?? ??? ??? ? ????.

JavaScript? ??? ?? ????? ??? ?? ??? ??? ?? ?? ?? ????? ?? ???? ???? ?????. ??? ?? ???? ?? ??? ?? ??? ???? ???? ?? ?? ???? ???? ?????. ?? ??, ??? ? ?? ???? ??? (? : ??? null? ??) ?? ??? ????? ??????. ??? ??? ???? ??? ??? ????. closure?? ?? ??? ?? ??; ? ??? ??? ?? ?? ???? ?? ???? ????. V8 ??? ?? ???, ?? ??, ??/?? ???? ?? ??? ?? ??? ??? ????? ?? ??? ?? ??? ????. ?? ?? ???? ??? ??? ??? ??? ???? ????? ?? ?? ???? ?? ???????.

Node.js?? HTTP ??? ???? ? ?? ???? ??? ????. 1. ?? ????? ????? ??? ??? ? ?? ????? ?? ?? ? https.get () ??? ?? ??? ??? ? ?? ????? ?? ??? ?????. 2.axios? ??? ???? ? ?? ??????. ??? ??? ??? ??? ??? ??? ???/???, ?? JSON ??, ???? ?? ?????. ??? ?? ??? ????? ?? ????. 3. ?? ??? ??? ??? ??? ???? ???? ??? ??? ???? ?????.

VAR, Let ? Const? ???? ??, ?? ? ?? ?????. 1.var? ?? ??????? ?? ???? ?? ? ??? ?????. 2. let? ?? ?? ????? ?? ?? ???? ?? ? ??? ???? ????. 3. ???? ?? ?? ???? ?? ??????? ? ?? ? ? ??? ?? ??? ?? ?? ??? ? ????. ?? const? ???? ??? ??? ? LET? ???? VAR? ???? ????.

JavaScript ??? ??? ?? ?? ? ?? ???? ????. ?? ???? ???, ??, ??, ?, ???? ?? ? ??? ?????. ?? ????? ?? ?? ? ? ??? ????? ?? ??? ??? ????. ??, ?? ? ??? ?? ?? ??? ??? ??? ???? ??? ??? ???? ??? ?? ??? ????. ?? ? ????? ??? ???? ? ??? ? ??? TypeofNull? ??? ?????? ??? ? ????. ? ? ?? ??? ???? ?????? ????? ???? ??? ???? ? ??? ? ? ????.

DOM Traversal? ? ??? ?? ??? ?????. ???? ???? ??? ?????. 1. ParentNode? ???? ?? ??? ?? ???? ?? ? ????. 2. ???? ?? ?? ??? ???? ??? ?? ? ?? ?? ?? ??? ??? ??????. 3. NextElementsibling? ?? ?? ??? ?? ?? ??? ???? ??? ??? ??? ?????. ???? ?? ??, ??? ?? ?? ?? ?? ?? ????? ??? ???? ?? Brother ??? ?? ?????. ??? ??? ??? ? ??? ??? ??? ???? ?? ? ? ????.
