??
? ????? ??? ?? ??? ?? ??? ???? React ??????? ????? ???? ???? ?? ??? ???? ?????. ??? ??? ???? ?? ???? ?? ??? ???? ???? ??????? ?? ? ????.
?? ??
????:
- ??: ?? ?????? ??? ???? ???? ???? ??? ?????.
-
??:
- ???? ??? API
- ???? ???? ? ?? ???.
- ??????? ?? ??? ?? ?????.
- ?:
import create from 'zustand'; const useStore = create((set) => ({ count: 0, increment: () => set((state) => ({ count: state.count + 1 })), }));
?? ??:
- ??: ??? ??? ???? ? ??? ?????.
-
??:
- ?? ??? ???? ? ??
- ??, ??, ?? ??? ?? ?????.
- ?? ??? ? ?? ???? ??? ???? ????.
- ?:
import { useQuery } from 'react-query'; const fetchUsers = async () => { const response = await fetch('https://api.example.com/users'); return response.json(); }; const UsersList = () => { const { isLoading, isError, data, error } = useQuery('users', fetchUsers); if (isLoading) return <div>Loading...</div>; if (isError) return <div>Error: {error.message}</div>; return ( <ul> {data.map((user) => ( <li key={user.id}>{user.name}</li> ))} </ul> ); };
??? ??
????:
- ??: ??? ???? API ??? ?? ???? ?? ??? ?????.
-
??:
- ?? ??? ?? ??.
- ???? ????? ?? React Query? ?? ?????.
- ?:
import { useMutation } from 'react-query'; const createUser = async (userData) => { const response = await fetch('https://api.example.com/users', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(userData), }); return response.json(); }; const CreateUserForm = () => { const [createUserMutation] = useMutation(createUser); const handleSubmit = (userData) => { createUserMutation(userData) .then(() => { // Handle success }) .catch((error) => { // Handle error }); }; return ( <form onSubmit={handleSubmit}> {/* Form fields */} <button type="submit">Create User</button> </form> ); };
??? ??
TanStack ???:
- ??: ???? ??? ??? ??? ????? ?????.
-
??:
- ??? ?? ? ??? ?????.
- ??? ??? ??? ??? ?? ??? ?????.
- ??? ????? ?? React Query? ? ?????.
- ?:
import { useTable } from 'tanstack/react-table'; const columns = [ { header: 'Name', accessor: 'name' }, { header: 'Email', accessor: 'email' }, ]; const data = [ { name: 'John Doe', email: 'john@example.com' }, // ... ]; const TableComponent = () => { const { getTableProps, getTableBodyProps, headerGroups, rows } = useTable({ columns, data, }); return ( <table {...getTableProps()}> <thead> {headerGroups.map((headerGroup) => ( <tr {...headerGroup.getHeaderGroupProps()}> {headerGroup.headers.map((column) => ( <th {...column.getHeaderProps()}>{column.render('Header')}</th> ))} </tr> ))} </thead> <tbody {...getTableBodyProps()}> {rows.map((row) => ( <tr {...row.getRowProps()}> {row.cells.map((cell) => ( <td {...cell.getCellProps()}>{cell.render('Cell')}</td> ))} </tr> ))} </tbody> </table> ); };
???? ?????
?? UI:
- ??: ???? UI ???? ??? ?????.
-
??:
- ??? ??? ???? ?????.
- ???? ?? ?? ??? ?????.
- ??? ??? ? ???? ????.
- ?:
import { Menu } from '@radix-ui/react-menu'; const MenuComponent = () => { return ( <Menu> <Menu.Button>Open Menu</Menu.Button> <Menu.Items> <Menu.Item>Item 1</Menu.Item> <Menu.Item>Item 2</Menu.Item> </Menu.Items> </Menu> ); };
Tailwind CSS:
- ??: ???? ?? CSS ?????.
-
??:
- ?? ??? ????.
- ???? ?? ??? ????
- ?? ????? ? ????.
- ?:
import create from 'zustand'; const useStore = create((set) => ({ count: 0, increment: () => set((state) => ({ count: state.count + 1 })), }));
?? ??
Yup? ???? Formik:
- ??: ?? ??, ??? ?? ? ??? ?????.
-
??:
- ??? ?? ??.
- ??? ??? ?? ??.
- ?? ?????? ?? ?????.
- ?:
import { useQuery } from 'react-query'; const fetchUsers = async () => { const response = await fetch('https://api.example.com/users'); return response.json(); }; const UsersList = () => { const { isLoading, isError, data, error } = useQuery('users', fetchUsers); if (isLoading) return <div>Loading...</div>; if (isError) return <div>Error: {error.message}</div>; return ( <ul> {data.map((user) => ( <li key={user.id}>{user.name}</li> ))} </ul> ); };
??????
- ??: ???? ??? ??? JavaScript ?? ??.
-
??:
- ?? ??? ?? ???? ???????.
- ??? ??? ?????.
- ? ?? ?? ???? ?? ??.
???? ??
src/
├── ????/
│ ├── Button.jsx
│ ├── ??.jsx
│ └── ...
├── ???/
│ ├── Home.jsx
│ │ ????/
│ │ ├── Hero.jsx
│ │ └── ...
│ ├── About.jsx
│ └── ...
├── lib/
│ ├── utils.js
│ └── ...
├── ??/
│ ├── api.js
│ └── ...
├── ??/
│ ├── counterStore.js
│ └── ...
??
??? ??? ??? ?? ??? ???? ???? ?? ???? ?? ??? ??? React ??????? ??? ? ????. ??? ?? ??? ?? ??, ???? ? ???? ?? ??? ???? ? ?? ?? ??? ? ?? ??? ?????? ?????.
? ??? ???? ?? ??? ?? 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)

??? ??











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

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

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

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

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

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

JavaScript ?? ????? ??????? ??? ?? ??? ??? ????? ?? ??? ????. ????? ??? ?????. 1. ?? ?? (CodesPlitting) ??, ?? ??? React.lazy ()? ?? ?? ?? ?? ??? ????? ??? ???? ? ?? ????? ??? ?? ??? ???????. 2. ???? ?? ?? (???)? ????, ES6 ?? ????? ???? "Dead Code"? ???? ?? ? ????? ?? ??? ??? ? ???????. 3. ?? ??? ???? ???? GZIP/BROTLI ? TERSER? JS? ???? ??? ????? ???? ?? ???? ??? ? ? ??????. 4. ??? ???? ???? day.js ? fetch? ?? ?? ?????? ??????.

ES ??? CommonJS? ?? ???? ?? ?? ? ?? ???????. 1. Commonjs? ????????? Node.js ?? ? ??? ?????. 2.ES ??? ???????? ????? ?? ???? ??? ?????. 3. ??, ES ??? ?? ??/????? ???? ??? ??? ?????? CommonJS? Quiew/Module.exports? ???? ???? ???? ?? ? ? ????. 4. Commonjs? Express? ?? ???? Node.js ? ?????? ?? ???? ?? ???? ?? ES ??? ?? ??? ?? ??? ?? ? Node.jsv14? ?????. 5. ?? ? ? ??? ?? ??? ??? ? ????.
