??? ??? ??? ?? ???? ??? ?????. ? ??? ???? ???? ???? ?? ??? ?? ??? ???? ?? ???? ??? ??????. Firebase?? ????? ?? ????? ??? ID ??? ??? ? ?? ??? ?????. ? ???? FireBase V9? ?? ? API? ???? ??? ??, ?? ? ??? ???? ??? ?????.
? ????? React, React Hooks ? Firebase V8? ?? ?? ?? ?????. Google ?? ? Node.js? ???????.
??
- Firebase ??
- ???? ??
- ?????? ??
- ??? ??
- ??? ?? ?? (RACT CONTEXT API)
- ??? ??
- ??? ???
- ?? ?? ??
- ??? ??
- ??
- ?? ??
Firebase ??
- Google ??? ????? Firebase ??? ???????.
- ??? Firebase ???? (? : "Firebase-User-Reg-Auth")? ????. ? ????? ?? Google ? ?? ??? ?? ? ? ????.
- Firebase ?? ??? ?? ?? ???? ??????.
- ???/?? ??? ??????.
???? ??
??? ??? ?? :
git ?? -B ??? https://github.com/tammibriggs/firebase_user_auth.git CD FIREBASE_USER_AUTH NPM ??
This includes Firebase v9 in package.json
. Run npm start
to launch the application.
?????? ??
- Firebase ???? ????? ? ?? ??? ?????.
- Create
firebase.js
in your React app'ssrc
directory. - ??? ?? ?? ?? :
// src/firebase.js 'Firebase/App'?? {initializeapp} ?? ??; 'Firebase/Auth'?? {getauth} ?? ??;
- FireBaseConfig ??? ?? ?? Firebase? ???????.
// src/firebase.js const firebaseconfig = { / * ???? ?? * /}; const app = initializeapp (firebaseconfig); const auth = getauth (app); ???? {auth};
??? ??
The Register.js
component uses createUserWithEmailAndPassword
(Firebase v9). ???? ??? ??? ???? ???? ?? ?????. ?? ??? ??? ?? ? ?? ??? ?????. The form's onSubmit
event triggers the registration process.
??? ?? ?? (RACT CONTEXT API)
An AuthContext.js
file provides a context for managing user state. AuthProvider
shares the user state, and useAuthValue
accesses it. App.js
wraps components with AuthProvider
, and onAuthStateChanged
updates the user state.
??? ??
After registration, sendEmailVerification
sends a verification email. The user is redirected to a /verify-email
page. This page displays the user's email and a "Resend Email" button with a 60-second cooldown using useEffect
and state management to prevent rate limiting. ???? ???? ???? ???? ???????.
??? ???
The Profile.js
component displays user email and verification status using useAuthValue
. The "Sign Out" button utilizes signOut
from Firebase.
?? ?? ??
PrivateRoute.js
restricts access to the profile page to verified users using Redirect
. App.js
??? ???? ?? ??? PrivateRoute
????? ???????.
??? ??
The Login.js
component uses signInWithEmailAndPassword
. After login, it checks email verification and redirects to /verify-email
if necessary, starting the 60-second countdown.
??
? ???? FireBase V9? ???? React ?? ?????? ??? ??? ??? ?????? ??? ? ???? ?????. Firebase? ??? ????? ?? ????? ???? ???? ???? ?????.
?? ??
- Firebase ?? ??
- ???? API ??? ?????
? ??? Firebase ? 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)

??? ??











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

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

???, cssdoesnothavetobeInlowercase. ???, lowercaseisRecomedended for : 1) ??? ? ??, 2) ??? ?? rorsinerrorsinerrorsIngerRorsIngerRorsInteChnologies, 3) ??? ?? ??, ? 4) ?? ? ???? ????.

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

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

CSSCOUNTERSCANAUTOMALLYNUMBERSESSESSENDS.1) USECOUNTER-RESETTIONITIALIZE, CORKENT-INCREMENTTOINCERES, andCOUNTER () ORCOUNTERS () TODISPLAYVALUES.2) COMPINEWITHJAVAISCRIPTORDINAMICCONTENTTOEREACCUTERUPDATES.

CSS?? ??? ? ?? ??? ?? ??? ???? ??, ??, URL ? ??? ?? ????? ?? ?? ??? ?????. 1. ???? ?? ??? ??? ? ???? ?? ?? ??? ??????. 2. ?? 16 ?? ??? ?? ??? ?????, ??? ???? ???? ?? ??? ??? ???? ????. 3. URL? ??? ???? ???? ??? ??? ? ????. 4. ??? ?? ?? (??)? ??? ???? ??? ? ???? ??????? ???????.

cssselectorsandpropertynamesarecase-inensensitive, whilevaluescanbecase-sensitivendependingOntext.1) selectorsike'div'and'div'areequivalent.2) propertiessuchas'background'and'background-color'AretreatedThesame.3) ValueLikecolornames-insens
