Next.js ???????? ??? ?? ??? ???? ???? ????? ??? ??? ???? ?? ?????? ??? ? ????. ??? ? ?? ?? 5? ?????? ??? ????.
Next.js? ?? ?? 4? ??? ?? ?????
-
?????
- ??: Yup? Formik? ?? ?? ?? ?????? ? ???? ??? ??? ?? ????????. ??? ??? ?? ??? ? ??? React ??????? ???? ??? ? ????.
- ?? ?:
import * as Yup from 'yup'; const validationSchema = Yup.object().shape({ email: Yup.string() .email('Invalid email format') .required('Email is required'), });
-
Validator.js
- ??: ??? ??? ??? ??? ??? ??? ???? ???? ???? ??? ???? ?? ????????. ??? ??? ??? ???? isEmail() ???? ???? ????.
- ?? ?:
const validator = require('validator'); if (validator.isEmail(emailInput)) { console.log('Valid email!'); } else { console.log('Invalid email!'); }
-
??? ??? ???
- ??: ? ?????? ?? ??? ?? ??? ???? ???? ? ??? ???. ??? ???? ?? ??? ?????.
- ?? ?:
const EmailValidator = require('email-validator'); const isValid = EmailValidator.validate('test@example.com'); // true
-
React Hook ?(with Yup)
- ??: React Hook Form? React ???????? ??? ???? ? ?? ???? ? ?? ????????. ??? ?? ??? ?? Yup? ? ????? ??? ??? ??? ?????.
- ?? ?:
import { useForm } from 'react-hook-form'; import * as Yup from 'yup'; import { yupResolver } from '@hookform/resolvers/yup'; const schema = Yup.object().shape({ email: Yup.string().email().required(), }); const { register, handleSubmit, errors } = useForm({ resolver: yupResolver(schema), }); const onSubmit = data => { console.log(data); }; <form onSubmit={handleSubmit(onSubmit)}> <input name="email" ref={register} /> {errors.email && <p>{errors.email.message}</p>} <button type="submit">Submit</button> </form>
??? ?????? Next.js ???????? ??? ??? ???? ?? ??? ??? ???? ??? ?? ??? ???? ???? ??? ?? ? ?? ???? ????.
Next.js ???????? Zod ?????? ???? ??? ??? ????? ??? ??? ??? ???? ???? ??? ? ????. ????? ???? ??? ??? ????.
Zod? ?? ??? ??
1. Zod ??
?? ????? Zod? ???? ??? ?????. ??? ???? ? ??? ??? ? ????.
npm install zod
2. Zod ????
??? ????? ??? Zod? ?????.
import { z } from 'zod';
3. ??? ?? ??? ??
Zod? ??? ??? ???? ??? ??? ???? ???? ???? ??? ? ????. ??? ?? ???? ???? ??? ?? ??? ????.
const emailSchema = z.string().email({ message: "Invalid email address" });
? ???? ??? ????? ?? ??? ??? ????? ?????.
4. ??? ?? ??
??? ??? ????? Zod?? ???? ?? ?? ??? ??? ? ????. ?? ??? ??? ????.
import * as Yup from 'yup'; const validationSchema = Yup.object().shape({ email: Yup.string() .email('Invalid email format') .required('Email is required'), });
5. ??? ??? ?? ??(?? ??)
???? ??????? ????? ???? ? ?? ??? ????? ???? ??? ?? ??? ??? ??? ? ????. ???? ?? ??? ????.
const validator = require('validator'); if (validator.isEmail(emailInput)) { console.log('Valid email!'); } else { console.log('Invalid email!'); }
6. ??? ??
Next.js ???????? ??? ???? ?? ??? ??? ?? ? ?? ??? ?? ? ???? React Hook Form ?? Formik? ?? ?? ?? ?????? ??? ? ????.
? ??? ??? Zod? ???? Next.js ???????? ??? ??? ????? ???? ??? ??? ??? ????, ?????? ?? ??? ????? ??? ? ????.
10? ??? MVP? ???? ?????? ?? ?? ??? ??????.
? ??? Next.js?? ??? ??? ?? ?? ? ??? ????? ??? ?? ?????. ??? ??? 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)

??? ??











Java ? JavaScript? ?? ?? ????? ??? ?? ?? ?? ???? ????? ?????. Java? ??? ? ??? ?????? ??? ???? JavaScript? ?? ? ??? ??? ?????.

JavaScriptCommentsareEnsentialformaining, ?? ? ???? 1) Single-LinecommentsERUSEDFORQUICKEXPLANATIONS.2) Multi-linecommentSexplaincleClexLogicOrprovidedEdeDDocumentation.3) inlineecommentsClarifySpecificPartSofcode.bestPractic

JavaScript?? ??? ??? ?? ? ? ?? ??? ???????. 1. ?? ??? ??? ???? ?? ??? ????. ISO ?? ???? ???? ???? ???? ?? ????. 2. ?? ??? ?? ???? ??? ?? ???? ??? ? ??? ? ?? 0?? ????? ?? ??????. 3. ?? ?? ???? ???? ???? ?? ?????? ??? ? ????. 4. Luxon? ?? ???? ???? ?????? ???? ?? ????. ??? ?? ???? ????? ???? ??? ????? ?? ? ????.

JavaScriptIspreferredforwebDevelopment, whithjavaisbetterforlarge-scalebackendsystemsandandandoidapps.1) javascriptexcelsincreatinginteractivewebexperiences withitsdynatureanddommanipulation.2) javaoffersstrongtypingandobject-Orientededededededededededededededededdec

TAGGSATTHEBOTTOMOFABLOGPOSTORWEBPAGESERVESPRACTICALPURSEO, USEREXPERIENCE, andDESIGN.1.ITHELPSWITHEOBYOWNSESPORENGENSTOESTOCESKESKERKESKERKERKERDER-RELEVANTTAGSWITHOUTHINGTEMAINCONTENT.2.ITIMPROVESEREXPERKEEPINGTOPONTEFOCUSOFOFOFOCUSOFOFOFOCUCUSONTHEATECLL

javascriptassevenfundamentalDatatatypes : ??, ???, ??, unull, ??, ? symbol.1) ?? seAdouble-precisionformat, ??? forwidevaluerangesbutbecautiouswithfatingfointarithmetic.2) stringsareimmutable, useefficientconcatenationmethendsf

Java? JavaScript? ?? ????? ?????. 1. Java? ???? ???? ??? ? ??? ?????? ?????? ? ?? ???? ?????. 2. JavaScript? ?? ? ?? ?? ? ??? ?? ??? ???? ??? ? ?? ? ?? ?????.

??? ?? ? ??? DOM?? ??? ??? ? ?????. ??? ?? ????? ?? ??????, ??? ?? ???? ?? ????????. 1. ??? ??? addeventListener? usecapture ?? ??? true? ???? ?????. 2. ??? ??? ?? ???? usecapture? ???? ????? ?????. 3. ??? ??? ??? ??? ???? ? ??? ? ????. 4. ??? ?? ?? ?? ??? ?? ??? ??????? ??? ???? ?????. 5. ??? ?? ?? ?? ??? ?? ???? ?? ???? ? ??? ? ????. ? ? ??? ???? ???? JavaScript? ??? ??? ??? ????? ???? ???? ??? ??????.
