React? ?? ?? ?? ? ?? DOM? ?? ???? ????? ??? ?????? ?????? JavaScript ????????. 1. ?? ?? ? JSX : JSX ??? ???? ?? ??? ???? ?? ??? ??? ??????. 2. ?? DOM ? ??? : ?? DOM ? DIFF ????? ?? ??? ??? ??????. 3. ?? ?? ? ?? : usestate ? useffect? ?? ??? ?? ?? ? ??? ??? ??????. 4. ??? ? : ?? ???? ?? ??? ? ??? ????? ???? API? ??????. 5. ???? ?? ? ??? : ???? ?? ?? ? ?? ?? ???? ??? ??? React DevTools? ???? ???? ??????. 6. ?? ??? ? ?? ?? : React.Memo, UseCallback ? Usememo? ???? ??? ????? ?? ??? ? ?? ??? ?????.
??
AH, AH, IT? ???? ?? ??? ?? ? ??? ??? ?? ?? ?? ??? ????? ????? ?????. ?? ???? React? ???? ? ??? ???? ?? ??? ??? ???? ?? ?????. ?, ??? ?????? ???? ??? ?????. ? ????? React? ??? ?? ??? ?? ?? ??? ?? ? ??? ?? ? ????. RECT? ???? ?? ? ? ??? ?? ?????? ???? ??? ????. ???, ?? ??? ??? ??? ? ????? ?? ?? ?? ? ??? ??? ?? ? ????.
?? ?? ??
??? ??? React? ??? ?????? ?????? JavaScript ????????. Facebook? ?? ?????? ???? DOM ??? ???? ???? ?? ??????. React? ??? ?? ?? - ?? ?? ??? ?????. ?? DOM ??? ???? ?? ?????? ?? ??? ??? ?? ??? ????. ??? ?? ??? ??? UI ?? ?? ??? ??? ?? ? ? ????.
React??? ??? ??? ??? ?? ?????. ??? ?? ?? ??? ?????, ?? ??? ???? ??? ??? ??, ??? ?? ?? ???? ?? ?? ??? ???? ??????. ? ? ??? ???? ?? React? ????? ?????.
?? ?? ?? ?? ??
?? ?? ? JSX
React? ??? ?? ???? ?? ??? ??? ????? JSX ??? ?? ?????. JSX? JavaScript? html ??? ? ??? JavaScript Extension ?????. ??? ?? ?? ?? ?? ?????.
'React'?? React React; ?? ?? (??) { <h1> hello, {props.name} </h1>; } ?? ?? ??;
? ?? ??? name
??? ??? ?? ?? <h1>
??? ??????. JSX? ????? ????? ???? ??? ??? ??? ?? ??? ???? ?? ??? ??????.
?? Dom ? ???
React? ? ?? ?? ??? Virtual Dom???. ? ???? ?? ?? DOM ??? ?? ???? ??? ???? DOM ??? ?? ????. React? ??? ?? DOM? ?????. ??? ???? ?? ?? DOM?? ?? ? ?? Diff ????? ???? ???? ???? ??? ?? ?? DOM? ??? ???? ? ?????. ? ???? ??? ?? ??????.
import React, {usestate} 'react'; ?? ??? () { const [count, setCount] = usestate (0); ?? ( <div> <p> ??? {count} times </p>? ?????? <?? onclick = {() => setCount (count 1)}> ?? ?????? </??> </div> ); } ???? ?? ???;
? ??? ?? ???? ??? ?? ? ??? count
??? ????? ?? DOM ??? ?? ??? ?? ? ???????.
?? ?? ? ??
React 16.8? ???? ?? ? ??? ?????. Hooks? ???? ???? ?? ?? ?? ? ?? React ??? ??? ? ????. ?? ????? ???? ??? useState
and useEffect
???.
import React, {usestate, useeffect} '??'react '; ?? ?? () { const [count, setCount] = usestate (0); useeffect (() => { document.title =`??? $ {count} times`? ??????.; }, [??]); ?? ( <div> <p> ??? {count} times </p>? ?????? <?? onclick = {() => setCount (count 1)}> ?? ?????? </??> </div> ); } ???? ?? ??;
? ???? count
?? ? ? useEffect
?? ??? ???????. ?? ??? ?? ?? ? ??? ??? ????? ??? ?????.
??? ?
?? ??
??? ?? ?? ???? ???????. ???? ??? ???? ??? ???? ??? ?????.
import React, {usestate} 'react'; function nameform () { const [name, setName] = usestate ( ''); const handlesubmit = (???) => { event.preventDefault (); ALERT ( '?? ? ?? :'??); }; ?? ( <?? onsubmit = {handlesubmit}> <??> ??: <?? type = "text" ? = {??} onchange = {(e) => setName (e.target.value)} /> </???> <?? ?? = "??"? = "??" /> </form> ); } ?? ?? ????;
? ?? ??? useState
???? ?? ??? ???? ??? ?? ??? ???? ??? ?????.
?? ??
?? React? ???? API (Context API)? ???? ??? ??? ???? ??? ?? ?????. ?? ??? ?? ??? ??? ?????.
import React, {usestate, createContext, usecontext} '??'react '; const themecontext = createContext (); ?? themeprovider ({children}) { const [??, setTheme] = usestate ( 'light'); const toggletheme = () => { setTheme (?? === 'light'? 'dark': 'light'); }; ?? ( <thecontext.provider value = {{??, toggletheme}}> {????} </themecontext.provider> ); } ?? ?? ?? () { const {??, toggletheme} = usecontext (themecontext); ?? ( <?? onclick = {toggletheme} Style = {{backgroundColor : ?? === 'light'? '#ffffff': '#000000', ?? : ?? === 'light'? '#000000': '#ffffff'}} > ?? ?? </??> ); } ?? ? () { ?? ( <ThemeProvider> <?? ?? /> </themeprovider> ); } ?? ? ????;
? ?? ???? API? ???? ?? ?? ???? ??? ??? ???? ???? ??? ?????.
???? ?? ? ??? ?
React ???? ???? ???? ???? ?? ??, ??? ?? ?? ???? ?? ?????. ? ?? ???? ??? ???? ?? ?????.
???? ?? ?? : ??? ???? ??? ?????????. ?? ??, ??? ??? ?? ??? ??? ??? ??? ????????.
?? ??? ???? ?????? ?? : ?? ??? ??? ? ?
key
??? ???? ???? ??? ??????.key
???? ???? ??? React? ?? ??? ???? ???? ?????? ?? ? ????.??? ? : React DevTools? ???? ?? ?? ??, ?? ? ??? ?? ??? ? ? ????. ??
console.log
?useEffect
??? ?? ??? ????? ? ??? ? ? ????.
?? ??? ? ?? ??
?? ??? ? ?? ??? React ??? ?????. ? ?? ??? ??? ????.
???? ? ???? ????? :
React.memo
???? ?? ?? ??? ????? ??? ?? ????shouldComponentUpdate
?????.useCallback
?useMemo
?? :? ??? ?? ?? ??? ????? ? ?? ?? ??? ? ??? ????? ? ??? ? ? ????.
import React, {usestate, usecallback, usememo}? 'React'; ?? ExpensiveComponent ({compute}) { const result = usememo (() => compute (), [compute]); ?? <div> ?? : {result} </div>; } ?? parentComponent () { const [count, setCount] = usestate (0); const compute = usecallback (() => { // Count * 2? ???? ? ?? ??? ??? ?????. }, [??]); ?? ( <div> <?? onclick = {() => setCount (count 1)}> ?? </button> <ExpensiveComponent Compute = {compute} /> </div> ); } ?? ?? ?? ??;
- ?? ??? ? ?? ?? : ?? ??? ?? ???? ???? ???? ?? ??? ???? ??? ??? ??? ??????. ??? ??? ??? ???? ?????? ??? ???? ???? ??????.
?? ???? ??? ?? ??? ??????? ??? ?????? ??? ??? ? ?? ?? ???? ?? ? ? ??? ??????. useMemo
?? ???? ? ?? ??? ?? ?? ?? ?? ??? ?? ????? ? ???? ??????.
????? React? ???? ??? ??? ?? ?? ??? ?????. ??? ?? ??? ?? ??? ???? ???? ????? ?? ?? ??? ??? ?????? ?? ? ? ????. ? ??? ??? ???? ??? ???? React?? ??? ?? ??? ?????!
? ??? React : ??? ????? (Frontend)? ??? ???.? ?? ?????. ??? ??? 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)

React ??? ???? ???? ?? ????? ??? ??? ??? ????? ?? ? ??? ??? ?????. 1. eseref? ?? ?? ?? ??? ?? ????? ???? ??? ????? ???? ???? ?? ??? ??????. 2. ARIA ??? ???? ? ?? ??? ?? ? ?? ??? ?? ???? ??????. 3. ??? ????????? ??? ?? ??? ?? ?? ??? ?? ??? ???????. 4. ???? HTML ??? ???? ??? ?? ??? ???? ? ?? ??? ????. 5. REACT? DOM? ???? ARIA ??? ???? ???? ????? ??? ??? ??? ?????? ?? ????.

Shallowrenderingtestsacomponentinisolation,withoutchildren,whilefullrenderingincludesallchildcomponents.Shallowrenderingisgoodfortestingacomponent’sownlogicandmarkup,offeringfasterexecutionandisolationfromchildbehavior,butlacksfulllifecycleandDOMinte

StrictMode? React?? ??? ???? ?????? ??? ?? ?? ?? ?????. ?? ??? ???? ??? ? ??, ?? ??? ?? ?????? ?? ?? ??? ?? ??? ??? ??? ??? ????? ?? ????. ?????, ???? ?? ???? ??? ????? ??? ???? ???? ???? ??? ??? ??? ??? ?? ?????. ?? ?? ??? ?? ????? ??? ???? ??? ???? ???? ???? ?? ??? ??? ?? ??? ??? ???? ?? ? ? ????. ??? ??? ?? useref ?? ?? ??? ?? ?? REF ??? ????? ?????. stri? ????? ?????

?? ? ?? ???? ???? ?? ???? ??? ? ??? VueCli ?? Vite? ???? TypeScript ?? ????? ????. ?? ??? ??? ???? ?? ???? ?? ??? ???? ?? ? ?? ??? ?? ??? ???? ????? ?? ??? ???? ??? ??? ???? ?? ????. ?? ???? Ref ? Reactive? ??? ? ??? ?? ??? ?????? ?? ?? ?? ? ?? ???? ????? ?? ????.

VUE ??? ?? ? ? ????? ? ? ?? ?? ??? ????. 1. V- ??? ???? ??? ???? ???? ?? ???? ??????. 2. ?? ??? ???? ?? ?? ??? ?????. 3. ?? ?? ? ???? ?? ? ?? ???? ??????. VUE?? ?? ??, ??? ?? ?? ?? ??? ??? ??? ???? ????? ? V- ??? ?? ??? ??? ??? ? ? ????. ?? ??? ?? ?? ????? ?? ??? ??? ??? ????? ?? ??? ?? ???? ???????. ?? ??? ??? ?? ?? ?? ?? ?????? ?? ??? ? ????. ???? ???? ??? ?? ??? ????, ??? ? ?? ??? ????, ??? ????? ? ??? ??? ???? ?? ?????. ?? ??, ? ??? ?? ??? ??? ???? ?? ValidateForm ???? ?????. ??? ? ???????

Server-Siderendering (ssr) innext.jsgenerateshtmlontheserverfireachrequest, ?? ? proformanceandseo.1.ssrisidealfordynamiccontentthatchangangesfrequely, suchasserdashboards.2

WebAsSembly (WASM) ISM) ISAGAME-ChangerForfront-EndDevelopersSeekingHigh-performanceWebApplications.1.WasmisalInstructionFormatThatrUnSatnear-NativesPeed, EnablingLanguagesLikerust, C, andgotoExecuteInthebrowser.2.Itclplestrathtrathtrathertrathertrathertrathertrathertrathlact

CSP (Content Security Policy)? ? ??? ?????? ??? ???? XSS? ?? ??? ?????. ?? ????? ?? ????? ???? ?? ???? ?? ??????? ???? ????. ???? ???? ??? ?????. 1. ??? ???? ?? ??? ??? ???????. 2. ??? Content-Security-PolicyHTTP ?? ??; 3. ??? ?? ??? ???? ?? ???? ????? ???????. 4. ???? ??? ??? ??? ??? ???? ???? ? ??? ??. ???? ??? ???? ??, ?? ???? ??? ??, ??? ?? ? ?? ?? ? ??? ?? ??? ?????.
