? ????? ???? ??? ??? ??? ?? ?? ????? ???? React ??? ?? ?????. ?? ??? ?? ??? ???? ??? ???? ?? ??? ?? ??? ??? ?????. ? ????? ??? ??? ????? ??? ????? ??? ??? ?????.
?? ?? ?? ??? ??? ?? React ??? ???? ????? ????? ??? ????? ?????. ??? ?? ?? ? ??? ?? ? ??? ???? ?? ?? ? ?? ?? ???? ??????.
???? ?? ??
?? ?? ?????? ??? ?????.
- ???? ?? ???? ?????.
- ?? ??? ??.
- ??? ?? ? ??? ?? ??? ????.
- ??? ??? ? ??.
?? :
- ??? ?? ??? ???? ??? ??? ?? ?????.
- ????? ?? CSS ?? (?? ? ????? ?? ??)?? ?????.
?? ?? ??
? ?????? node.js ? npm (?? ??? ???)? ?????. ??? ?? ??????. ?? ?? React Creat app? ???? React ????? ????.
NPX Create-React-App ?? ????? CD ?? ????? NPM ??
?? ?? ???? ??? http://localhost:3000
?? ??????. ??? ?? ? ?? ??? ????? ?? ? ????.
useState
useState
??? ?? ?? ??? ?????. ??? ?? ???? this.state
???? ?? useState
???? ??? ??? ?? ?? ???? ?????. ??? useState
????? ?? ??? ???? ?? ??????.
?? ?? ?? :
import React, {usestate} 'react';
??? ?? ??? ??? ? ?? "Hello"?? id
??? ???? ??? ??? ?????.
// app.js import React, {usestate} 'react'; import './index.css'; ???? default () => { const [id, setid] = usestate ( ""); const [nameInput, setNameInput] = usestate ( ""); const [room, setroom] = usestate ( ""); const handlesubmit = e => { e.preventDefault (); if (! nameinput) { return alert ( "??? ??? ? ??"); } setid (nameinput); // ?? : ?? ?? nameInput? ????? socket.emit ( "??", nameinput, room); // ?? : ?? ?? nameInput? ????? }; // ... (?? ??? ???) };
??? ??? ??? ?????? useState
?????.
useSocket
hook
Open-Source useSocket
Hook? Socket.io ?????? ???? ?? ??? ?????. ?? ?? socket.io ?????? ??? ??? ???? WebSocket ??? ???? ?? ??? ?? ??? ?????.
?? ?? :
NPM Add use-Socket.io-Client
?? ?? :
const [socket] = useocket ( 'socket-url');
?? ? ??? :
'use-socket.io-client'?? avest useocket; const [socket] = useocket ( ''<your-socket-url> '); socket.connect (); Console.log (??);</your-socket-url>
???? ??? ??? ??????.
useImmer
?
useImmer
Hook? ??? ? ??? ?? ??? ?? ??? ??????. ?? ??? ???? ????? ?????. ?? ??? ??? ? ??? ??? ???? ? ?????.
?? ?? :
NPM ?? IMMER ??
?? ?? :
const [data, setData] = useImmer (defaultValue);
setData
??? ????? ?? ??? ???? ?? ??? ??? ????????.
setData (draft => { draft.push (newitem); });
useEffect
hook
?? ? useEffect
??? ??? ? ??? ?????. ????? ???? ?? ???? ???? ?? ??? ?????? ?? ? ????.
??:
import React, {usestate, useeffect} '??'react ';
Messages
?? ??? ??? ? ????? ??????.
const ??? = propss => props.data.map (m => m [0]! == ''?<div> {m [0]} : {m [1]}</div> :<div classname="innermsg"> {m [1]}</div> ));
useEffect
?? ?? ??? ?? ??? ???? ?????.
useeffect (() => { socket.on ( 'update', message => setMessages (draft => { draft.push ([ '', message]); }); // ... ?? ?? ??? }, []);
"??"???? ? ?? ???? ??????.
?? ?? ? ??? ??
?? ??? ??? ?????.
- ??? ???? ????
Online
?? ??. - ??? ??????
useImmer
? ? ?? ???. - ??? ?? ???.
??? App.js
? ??? ?????? ?? ?????? ?? ??? Github (?? ??? ??? ??)?? ??? ? ????.
? ????? ???? ??? ??? ?? ????? ?????? React ??? ???? ?????. ? ??? ??? ?? ?? ????? ?? ??? ??? ???? ????? ??? ? ????.
? ??? 100 ?? ??? React Hooks? ???? ?? ? ??? ?? ?????. ??? ??? 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)

??? ??











CSS? ??? ??? ????? ????? ??? ? ?? CSS? ????? ?? ??????, ?? ?? ? ??? ??, ??? ?? ?? ??? CSS ? ????? ?? ??? ?? ???? ???? ??? ??? ???. 1. ?? CSS? ???? HTML? ?? ?????. 2. JavaScript? ?? ??? CSS ??; 3. ??? ??? ???? ?? ???? ????? ??????. 4. CSS? ???? ???? ??? ????. ?? CSS? ???? ?? ??? ???? Rel = "Preload"?????? ????, ??? ?? ??? ????? ???? ??? ?? ? ??? ???? ??? ?????.

TheBestoproachforcssdspectionseproject'sspecificneeds.forlargerProjects, externalcsSisbetterduetomainabainabainabilitableability ? forsmallerprojectsorsingle-pageapplications, ?? csmightbemoresuitable.it 'scrucialtobalanceprojectsize, ??

AutoPrefixer? ?? ???? ??? ???? ?? ?? ???? CSS ??? ???? ???? ?????. 1. ????? ???? ???? ???? ??? ?????. 2. PostCSS ???? ??, CSS? ?? ???? ???? ?? ???? ??? ???? ??? ?? ??? ?????. 3. ?? ???? ???? ??, ??????? ?? ? ?? ???????? ????? ?? ?????. 4. ???? ???? ???? ???? ?? ?? ????, ???? ?? ??? ?? ???? ???? ????? ?? ???? ?? ????.

cssismostlycase-Insensitive, buturlsandfamilynamesarecase-insensitive.1) propertiesandvalueslikecolor : red; anteOtcase-inditive.2) urlsmustmatchtheserver'scase, ?? ??,/images/logo.png.3) fontfamilynames'opens'mustoccase.

theconic-gradient () functionincsscreatescurcular gradientsthattroTecolorstopsaroundacentral point

ToTeCreatesTickyHeaders andfooterswithcss, ?? ?? : stickyforheaderswithTopvalueAndz-index

CSS ??? ?? ??? ??? ??? ????? ?? ???, ??? ??? ????? ??? ?? ????, ?? ??? ?? ??? ? ???? ??? ?? ?? ??? ?? ?????. ?? ?? .card ???? ?? ? ??? ???? ??? ???? ??? ???? ??? ? ????. ?? ??? ??? ????. 1. ?? : ?? ??? ?? ??? ??? ?????? ??; 2. ?? ?? ??? ?? ??? ???? ???? ?????. 3. ??? ??? ????? ???? ????. 4. ??? ????? ?? ??? ??? ?? ?? ?????????. ?? CSS ??? ??? ???? ??? ??? ?? ???? ?? ???????. ??? ???? ???? ??? ???? ?? ? ?? ??? ??? ?????. ???? ???? ?? ???? ?? ? ? ????

CSSANIMATINSENHANCEBEBPAGESBOYIMPORIECENDIENDSITEFUNCERINGES
