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)

??? ??











ToimplementDarkModeIncsFeffectively, USECSSVARIBLESFERTHEMECOLORS, COLOR-SCHEME, ADDAMANUALTOGGLEBUTTON ? HANDLEIMAGES ? GroundsThoughtly

The topic differencebetweenem, Rem, PX, andViewportunits (VH, VW) LiesintheirreFerencepoint: PXISFixedandbasedonpixelvalues, emissrelative EtothefontsizeFheelementoritsparent, Remisrelelatotherootfontsize, AndVH/VwarebaseDontheviewporttimensions.1.PXoffersprecis

Csshoudini? ???? JavaScript? ?? ????? ??? ?? ??? ?? ???? ?? ? ??? API ?????. 1. ??? ??? ?? ?? ???; 2. LayoutWorklet ??? ?? ???? ??; 3. ????? ???? ??? ?????? ?????. 4. Parser & Typedom? CSS ??? ????? ?????. 5. ?? ? valueApi ???? ??? ?? ??; 6. fontmetricsapi? ?? ??? ????. ?? ?? ???? ???? ???? CSS? ???? ?? ??? ?? ??? ???? ??? ???? ?????.

??? transforminvue3aimedtosimplify handlingreactivedatabyautomicallytrackingandmaningreactivity withoutequiringmanualref () ?? valueusage.itsivingtoreduceboilerplateandimprovecodeReadabilitabledevariableletandsconstasmonclicallicallicallicallicallicallicallicallicallicallicallicalliceLerplateNclateMconsconclicallicallicallicallicallicallicallicallicalliceLerplateN

cssgradientsenhancebackgroundswithdepthandvisualappeal.1.StartWithlineargradientsforsmoothcolortransitionsalongaline, specipingDirectionandColorStops.2.useradialgradientsForcculareFfects, AdeartingShapeanDcenterPosition.3.layerMultipleGradientStocre

CSS?? ??? ????? ?? ???? ?? ?????? ??? ??? ???? ??? ?????. 1. ??? : ? ?? ???? ?? ????? ??? ???, ???? ??? ??? ??? ??? ?? ??? ? ????. 2. ?? : ??? ???? ? ?? ???? ?? ??? ????, ??? ??? ?? ? ?? ??? ??? ? ???, ??? ?? ??? ??? ?????. 3. INLINE-BLOCK : ?? ??? ??? ????? ?? ??? ??? ??? ? ??? ??? ??? ??? ?? ????? ??? ??? ?? ? ? ????. 4. FLEX : ?? ???? ??, ????? ???? ??? ???, ?? ?? ? ?? ??? ?? ?? ? ??? ?? ???? ????.

??? ? ??? invueAppsareprimally handledusingthevuei18nplugin.1.installvue-i18nvianpmoryarn.2.createlocalejsonfiles (? : en.json, es.json) fortranslationMessages.3

VUE?? ?? ? ??? ?? ? ?? ???? ???? ?? ???? ?????. ?? ?? ??? ??? ?? ??? ?? ??? ????, ?? ?? ??? ??? ?? ?? ???? ?? ??? ?? ??? ??? ?? ??? ?? ???? ?????. 2. ??, ??? ??, API ??? ?? ?? ??? ?? ?? ???? ???? ? "Propdrilling"? ??? ? ?????. 3. ?? : ????? ?? ?? ?? ? ??? ???? ?? ? ????? ?????? ?? ??? ??? ??? ??? ????? ????.
