React 19? ????? ????? ?? npm?? ??? ? ????! ??? ??? ??? ???? ?? ? ?? ??? ????? ??? ???? ???? UI ?? ??? ?????? ???????. React 19? ??? ??? ????? ??? ??? ???? ??? ????? ?????.
React 19? ?? ????
- ?? ? ??? ??
??? ??? ??, ?? ??, ?? ??, ??? ????? ?? ??? ?? ??? ??????. useTransition ?? ??? useActionState ??? ???? ??? ??? ? ????.
?? ??? ???? ?????.
? ?? ?? ??? ?????.
action ?? formAction ??? ????
??? ??? ?? ??? ?????.?: useActionState? ??? ???? ??
function ChangeName({ name, setName }) { const [error, submitAction, isPending] = useActionState( async (previousState, formData) => { const error = await updateName(formData.get("name")); if (error) { return error; } redirect("/path"); return null; }, null, ); return ( <form action={submitAction}> <input type="text" name="name" /> <button type="submit" disabled={isPending}>Update</button> {error && <p>{error}</p>} </form> ); }
- useOptimistic? ??? Optimistic ????
??? useOptimistic ??? ???? ??? ??? ???? ?? ????? ???? ???? ??? ? ????.
function ChangeName({ currentName, onUpdateName }) { const [optimisticName, setOptimisticName] = useOptimistic(currentName); const submitAction = async (formData) => { const newName = formData.get("name"); setOptimisticName(newName); const updatedName = await updateName(newName); onUpdateName(updatedName); }; return ( <form action={submitAction}> <p>Your name is: {optimisticName}</p> <input type="text" name="name" /> </form> ); }
- API ??
?? API? ???? ??? ????? ??? ???? ????? ?? ??? ?? ?? ??? ?????.
import { use } from 'react'; function Comments({ commentsPromise }) { const comments = use(commentsPromise); return comments.map(comment => <p key={comment.id}>{comment}</p>); }
- ???? ????? ??
React 19?
, , ??? ?? ???? ?? ????? ??? ???? ????? ??? ?????.function BlogPost({ post }) { return ( <article> <title>{post.title}</title> <meta name="author" content="Author Name" /> </article> ); }
- ??? ????? ? ???? ??
React 19??? ??? ????? ?????.
.
? ???? ????? ??? ??????? ?? ?? ??? ??? ????? ????? ?? ?? ? ??? ?? ??? ?????.
<link rel="stylesheet" href="styles.css" precedence="default" /> <script async src="script.js"></script>
- ?? ?? ?? ? ??
React ?? ?? ??? ?? ?????? ?? ??? ?? ???? ? ????. ?? ??("use server" ???? ?? ????)? ???? ????? ?? ??? ??? ??? ??? ???? ??? ? ????.
- ?? ?? ??
React 19? ?? ??? ???? ???? ?? ??? ?? ???? ?????. ?? ???? ???? ?? ??? ?? onCaughtError, onUncaughtError ? onRecoverableError? ??? ? ????.
- ???? ??
?? ????? ?? ref? prop?? ??? ? ????,forwardRef? ???? ?? ??? ??????.
- ?? ? ?? ??
React 19? ???? ?? ?????? ?? ????? ?? ??? ??? ?? ??? ???? ???? ?? ??? ?????.
- ??? ?? ??
preload ? preinit? ?? ??? ?? ?? API? ???? ?? ???:
import { preload, preinit } from 'react-dom'; preinit('script.js', { as: 'script' }); preload('font.woff', { as: 'font' });
????? ??
??? ??? React 19 ????? ???(https://react.dev/blog/2024/12/05/react-19)? ????. ?? ?? ??? ??? ????.
?? ?? ??(???? ???? ??)
? ??? ???
React? ?? ????? ???? ???? ???????.
?? ?????
npm? ?? ????? React 19? ????????.
npm ?? React@19 React-dom@19
? ??? ??? ?? ??? ?? ? ?? ???? ???? ?? React 19 ??(https://react.dev/blog/2024/12/05/react-19)? ?????.
React 19? ????? ???? ??? ???? ??? ??? ??????? ??? ?? ??? ??? ???? ??? ?????. ?? ??? ??? ???!
? ??? 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)

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

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

?????, JavaScript ???! ?? ? JavaScript ??? ?? ?? ?????! ?? ?? ??? ??? ??? ? ????. Deno?? Oracle? ?? ??, ??? JavaScript ?? ??? ????, Google Chrome ???? ? ??? ??? ???? ?????. ?????! Deno Oracle? "JavaScript"??? ????? Oracle? ?? ??? ??? ??????. Node.js? Deno? ??? ? Ryan Dahl? ??? ?????? ???? ????? JavaScript? ??? ???? Oracle? ????? ???? ?????.

Cacheapi? ?????? ?? ???? ??? ???? ???, ?? ??? ??? ?? ???? ? ??? ?? ? ???? ??? ??????. 1. ???? ????, ??? ??, ?? ?? ?? ???? ???? ??? ? ????. 2. ??? ?? ?? ??? ?? ? ? ????. 3. ?? ?? ?? ?? ?? ??? ??? ?? ?????. 4. ??? ???? ?? ?? ???? ?? ?? ?? ?? ?? ???? ?? ?? ??? ??? ? ????. 5. ?? ???? ??, ??? ??? ? ??? ??, ?? ??? ? ?? ???? ???? ???? ? ?? ?????. 6.?? ??? ?? ?? ?? ??, ???? ?? ? HTTP ?? ????? ?????? ???????.

??? JavaScript?? ??? ??? ?????? ?? ???????. ?? ??, ?? ?? ? ??? ??? ?? ????? ????? ?????. 1. ?? ??? ??? ????? ???? ??. ()? ?? ??? ??? ?????. ?. ()? ?? ??? ?? ??? ??? ?? ? ? ????. 2. ?? ??? .catch ()? ???? ?? ??? ??? ?? ??? ??????, ??? ???? ???? ????? ??? ? ????. 3. Promise.all ()? ?? ????? (?? ?? ?? ? ??????? ??), Promise.Race () (? ?? ??? ?? ?) ? Promise.AllSettled () (?? ??? ???? ??)

.map (), .filter () ? .reduce ()? ?? JavaScript ?? ?? ???? ??? ??? ??? ? ? ????. 1) .map ()? ??? ??? ??? ???? ? ??? ???? ? ?????. 2) .filter ()? ???? ??? ????? ? ?????. 3) .reduce ()? ???? ?? ??? ???? ? ?????. ???? ??? ????? ??? ?? ?? ??? ?????.

JavaScript? ??? ??? ?? ??, ? ? ? ?? ???? ???? ??? ??? ?????. 1. ?? ??? ?? ??? ???? ??? ??? ??? ??? ?? WebAPI? ?????. 2. WebAPI? ??????? ??? ?? ? ? ??? ?? ??? (??? ?? ?? ???? ??)? ????. 3. ??? ??? ?? ??? ?? ??? ?????. ?? ??? ??? ????? ??? ??? ?? ? ???? ?????. 4. ???? ?? (? : Promise. 5. ??? ??? ???? ?? ???? ???? ?? ?? ?? ??? ????? ? ??????.

??? ??? ?? ???? ?? ??? ???? ?? ??? ??? ?? ??? ?? ??? ?????. 1. ??? ?? : ?? ??? ?? ? ? ???? ?? ??? ???? ??? ???? ??????. ?? ??, ??? ?? ? ? ?? ??? ?? ? ?? ??? ??????. 2. ??? ?? : ??? ???? ?? ?? ??? ?? ???? ????? ? ?? ?????? ???? ????? ? ?? ?? ??? true? ??????. 3. ?? ???? ?? ?? ??? ?? ??, ?? ??? ? ?? ???? ?????. 4. DOM ??? ???? ??, ?? ? ??? ? ??? ??? ?? ???? ?? ???? ?????.
